]> git.0d.be Git - empathy.git/commit
libempathy-gtk: Explicitly close the input stream used for reading avatars
authorPhilip Withnall <philip@tecnocode.co.uk>
Tue, 23 Aug 2011 22:42:52 +0000 (23:42 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 23 Aug 2011 22:47:23 +0000 (23:47 +0100)
commit57075092737c287010e1a2435bf1b1c1839101a5
tree8d1634a759475bb65d9b29ad428ac7d2683abab7
parent4fd99e6dc16c26656d43296f2b3104dac3f9e45b
libempathy-gtk: Explicitly close the input stream used for reading avatars

Due to a missing unref in GIO, the input stream is leaked by GFileIcon, so
if we rely on its FD being implicitly closed when the stream is finalised,
we'll end up leaking (lots of) file descriptors.

As well as fixing the unref in GIO (see: bgo#657206), we now explicitly
close the input stream so that even if the stream object is leaked, the FD
isn't.

Closes: bgo#656682
libempathy-gtk/empathy-ui-utils.c