Mercurial > pidgin.yaz
comparison src/gtkaccount.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 | b2f102b8abf1 |
children | b917acdc982f |
comparison
equal
deleted
inserted
replaced
9336:feb049ca7a47 | 9337:d0380151c6d1 |
---|---|
477 pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); | 477 pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); |
478 width = gdk_pixbuf_get_width(pixbuf); | 478 width = gdk_pixbuf_get_width(pixbuf); |
479 height = gdk_pixbuf_get_height(pixbuf); | 479 height = gdk_pixbuf_get_height(pixbuf); |
480 format = gdk_pixbuf_loader_get_format(loader); | 480 format = gdk_pixbuf_loader_get_format(loader); |
481 gdk_pixbuf_loader_close(loader, NULL); | 481 gdk_pixbuf_loader_close(loader, NULL); |
482 g_object_unref(G_OBJECT(pixbuf)); | 482 g_object_unref(G_OBJECT(loader)); |
483 #endif | 483 #endif |
484 pixbuf_formats = gdk_pixbuf_format_get_extensions(format); | 484 pixbuf_formats = gdk_pixbuf_format_get_extensions(format); |
485 | 485 |
486 if (str_array_match(pixbuf_formats, prpl_formats) && /* This is an acceptable format AND */ | 486 if (str_array_match(pixbuf_formats, prpl_formats) && /* This is an acceptable format AND */ |
487 (!(prpl_info->icon_spec.scale_rules & GAIM_ICON_SCALE_SEND) || /* The prpl doesn't scale before it sends OR */ | 487 (!(prpl_info->icon_spec.scale_rules & GAIM_ICON_SCALE_SEND) || /* The prpl doesn't scale before it sends OR */ |