Mercurial > pidgin.yaz
diff pidgin/gtkblist.c @ 16383:05033ae856b2
Fix the memory leaking and improper calls to ref_filename(). Also, remove some debugging code.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 24 Apr 2007 19:12:48 +0000 |
parents | 72dc611f3257 |
children | 5e47b3427b28 |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Tue Apr 24 17:00:51 2007 +0000 +++ b/pidgin/gtkblist.c Tue Apr 24 19:12:48 2007 +0000 @@ -2215,14 +2215,14 @@ loader = gdk_pixbuf_loader_new(); gdk_pixbuf_loader_write(loader, data, len, NULL); gdk_pixbuf_loader_close(loader, NULL); + + purple_imgstore_unref(custom_img); + buf = gdk_pixbuf_loader_get_pixbuf(loader); if (buf) g_object_ref(G_OBJECT(buf)); g_object_unref(G_OBJECT(loader)); - // TODO: FIX THIS!!! - //purple_imgstore_unref(custom_img); - if (buf) { int orig_width, orig_height; int scale_width, scale_height;