Mercurial > pidgin.yaz
diff src/gtkblist.c @ 9337:d0380151c6d1
[gaim-migrate @ 10145]
Chip tells me we need to be unrefing the GdkPixbufLoader object.
Now everything make sense. This should fix the massive leaks you've
been seeing.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Tue, 22 Jun 2004 00:31:30 +0000 |
parents | b726aba28229 |
children | 7fa8eff579b5 |
line wrap: on
line diff
--- a/src/gtkblist.c Tue Jun 22 00:29:23 2004 +0000 +++ b/src/gtkblist.c Tue Jun 22 00:31:30 2004 +0000 @@ -2656,9 +2656,10 @@ data = gaim_buddy_icon_get_data(icon, &len); gdk_pixbuf_loader_write(loader, data, len, NULL); buf = gdk_pixbuf_loader_get_pixbuf(loader); - + if (buf) + g_object_ref(G_OBJECT(buf)); gdk_pixbuf_loader_close(loader, NULL); - + g_object_unref(G_OBJECT(loader)); if (buf) { if (!GAIM_BUDDY_IS_ONLINE(b))