diff pidgin/gtkblist.c @ 20834:6b9e5bbab0fe

We need to unref the pixmaps after adding them to a list store.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 09 Oct 2007 00:24:45 +0000
parents 93674777d32f
children 58b9a33968e1
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Mon Oct 08 20:46:00 2007 +0000
+++ b/pidgin/gtkblist.c	Tue Oct 09 00:24:45 2007 +0000
@@ -5367,7 +5367,7 @@
 			   BUDDY_ICON_COLUMN, avatar,
 			   BUDDY_ICON_VISIBLE_COLUMN, biglist,
 			   EMBLEM_COLUMN, emblem,
-			   EMBLEM_VISIBLE_COLUMN, emblem,
+			   EMBLEM_VISIBLE_COLUMN, (emblem != NULL),
 			   PROTOCOL_ICON_COLUMN, pidgin_create_prpl_icon(buddy->account, PIDGIN_PRPL_ICON_SMALL),
 			   PROTOCOL_ICON_VISIBLE_COLUMN, purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_protocol_icons"),
 			   BGCOLOR_COLUMN, NULL,
@@ -5378,6 +5378,8 @@
 
 	g_free(mark);
 	g_free(idle);
+	if(emblem)
+		g_object_unref(emblem);
 	if(status)
 		g_object_unref(status);
 	if(avatar)
@@ -5549,6 +5551,8 @@
 				-1);
 
 		g_free(mark);
+		if(emblem)
+			g_object_unref(emblem);
 		if(status)
 			g_object_unref(status);
 		if(avatar)