Mercurial > pidgin.yaz
diff pidgin/gtkconv.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 | 0fa041c66957 |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Tue Apr 24 17:00:51 2007 +0000 +++ b/pidgin/gtkconv.c Tue Apr 24 19:12:48 2007 +0000 @@ -6259,14 +6259,14 @@ loader = gdk_pixbuf_loader_new(); gdk_pixbuf_loader_write(loader, data, len, NULL); gdk_pixbuf_loader_close(loader, &err); + + purple_imgstore_unref(custom_img); + anim = gdk_pixbuf_loader_get_animation(loader); if (anim) g_object_ref(G_OBJECT(anim)); g_object_unref(loader); - // TODO: FIX THIS!!! - //purple_imgstore_unref(custom_img); - if (!anim) return; gtkconv->u.im->anim = anim;