Mercurial > pidgin
changeset 23132:85c595142be6
A leak fix from malu. Thanks!
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 07 May 2008 18:22:49 +0000 |
parents | 9aa105267f46 |
children | cb0759d9fe30 |
files | pidgin/gtkimhtmltoolbar.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkimhtmltoolbar.c Wed May 07 18:13:14 2008 +0000 +++ b/pidgin/gtkimhtmltoolbar.c Wed May 07 18:22:49 2008 +0000 @@ -648,10 +648,9 @@ GdkPixbuf *resized; resized = gdk_pixbuf_scale_simple(pixbuf, 24, 24, GDK_INTERP_HYPER); - image = gtk_image_new_from_pixbuf(resized); + gtk_image_set_from_pixbuf(GTK_IMAGE(image), resized); /* This unrefs pixbuf */ gtk_widget_size_request(image, &size); - g_object_unref(G_OBJECT(pixbuf)); g_object_unref(G_OBJECT(resized)); } }