pidgin/pidgin

44c107f92a65
Always ref result of g_io_stream_get_{input,output}_stream.

Sometimes we wrap those in other streams, sometimes not. This makes prpls inconsistent with each other on whether they unref their `GInputStream`/`GOutputStream` in prpl data during shutdown. Thus, ref it when it's not wrapped, so we can _always_ do an unref in the cleanup.

This fixes a read-after-free Jabber shutdown, and presumably one in Novell, since it appears to do the same thing.

Testing Done:
Ran with valgrind and see no invalid reads in jabber shutdown. Novell was not tested, but seems similar.

Reviewed at https://reviews.imfreedom.org/r/558/
af
am
ar
as
ast
az
be@latin
bg
bn_IN
bn
br
brx
bs
ca
ca@valencia
cs
da
de
dz
el
en_AU
en_CA
en_GB
eo
es_AR
es
et
eu
fa
fi
fr
ga
gl
gu
he
hi
hr
hu
hy
id
it
ja
ka
kk
km
kn
ko
ks
ku_IQ
ku
lt
lv
mai
mhr
mk
ml
mn
mr
ms_MY
my_MM
nb
ne
nl
nn
oc
or
pa
pl
ps
pt_BR
pt
ro
ru
sd
si
sk
sl
sq
sr@latin
sr
sv
sw
ta
te
th
tr
tt
uk
ur
uz
vi
xh
zh_CN
zh_HK
zh_TW