Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
9336:feb049ca7a47 | 9337:d0380151c6d1 |
---|---|
3738 | 3738 |
3739 if (data && len) { | 3739 if (data && len) { |
3740 GdkPixbufLoader *loader = gdk_pixbuf_loader_new(); | 3740 GdkPixbufLoader *loader = gdk_pixbuf_loader_new(); |
3741 gdk_pixbuf_loader_write(loader, data, len, NULL); | 3741 gdk_pixbuf_loader_write(loader, data, len, NULL); |
3742 pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); | 3742 pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); |
3743 | 3743 if (pixbuf) |
3744 g_object_ref(G_OBJECT(pixbuf)); | |
3744 gdk_pixbuf_loader_close(loader, NULL); | 3745 gdk_pixbuf_loader_close(loader, NULL); |
3746 g_object_unref(G_OBJECT(loader)); | |
3745 } | 3747 } |
3746 | 3748 |
3747 } | 3749 } |
3748 | 3750 |
3749 if (pixbuf) { | 3751 if (pixbuf) { |