Mercurial > pidgin.yaz
diff src/gtkimhtml.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 | 8a4797a608ae |
line wrap: on
line diff
--- a/src/gtkimhtml.c Tue Jun 22 00:29:23 2004 +0000 +++ b/src/gtkimhtml.c Tue Jun 22 00:31:30 2004 +0000 @@ -3740,8 +3740,10 @@ GdkPixbufLoader *loader = gdk_pixbuf_loader_new(); gdk_pixbuf_loader_write(loader, data, len, NULL); pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); - + if (pixbuf) + g_object_ref(G_OBJECT(pixbuf)); gdk_pixbuf_loader_close(loader, NULL); + g_object_unref(G_OBJECT(loader)); } }