# HG changeset patch # User Tim Ringenbach # Date 1087866342 0 # Node ID 7fa8eff579b5365a2ed0a869e8a1de8d16aa338f # Parent 4d1ba3243f7a716eb27f18829521a9eaad77866f [gaim-migrate @ 10148] nosnilmot thinks this fixes another link. I think he's right. This one isn't my fault though :) committer: Tailor Script diff -r 4d1ba3243f7a -r 7fa8eff579b5 src/gtkblist.c --- a/src/gtkblist.c Tue Jun 22 00:57:21 2004 +0000 +++ b/src/gtkblist.c Tue Jun 22 01:05:42 2004 +0000 @@ -1286,6 +1286,7 @@ for(bnode = node->child; bnode; bnode = bnode->next) { GaimBuddy *buddy = (GaimBuddy*)bnode; + GdkPixbuf *buf; GtkWidget *submenu; GtkWidget *image; @@ -1297,9 +1298,10 @@ continue; menuitem = gtk_image_menu_item_new_with_label(buddy->name); - image = gtk_image_new_from_pixbuf( - gaim_gtk_blist_get_status_icon(bnode, - GAIM_STATUS_ICON_SMALL)); + buf = gaim_gtk_blist_get_status_icon(bnode, + GAIM_STATUS_ICON_SMALL); + image = gtk_image_new_from_pixbuf(buf); + g_object_unref(G_OBJECT(buf)); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menuitem), image); gtk_widget_show(image);