changeset 13861:55fb5cd9bac9

[gaim-migrate @ 16322] Fix a crash. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 23 Jun 2006 20:42:25 +0000
parents c1e3f7c75c3f
children 84f2675cf87f
files console/gntblist.c console/libgnt/gnttree.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/console/gntblist.c	Fri Jun 23 19:41:31 2006 +0000
+++ b/console/gntblist.c	Fri Jun 23 20:42:25 2006 +0000
@@ -17,8 +17,6 @@
 
 	GntWidget *tooltip;
 	GaimBlistNode *tnode;		/* Who is the tooltip being displayed for? */
-
-	GaimBuddyList *list;
 } GGBlist;
 
 GGBlist *ggblist;
@@ -134,7 +132,7 @@
 static void
 buddy_signed_off(GaimBuddy *buddy, GGBlist *ggblist)
 {
-	node_remove(ggblist->list, (GaimBlistNode*)buddy);
+	node_remove(gaim_get_blist(), (GaimBlistNode*)buddy);
 }
 
 GaimBlistUiOps *gg_blist_get_ui_ops()
@@ -246,7 +244,6 @@
 	ggblist = g_new0(GGBlist, 1);
 
 	gaim_get_blist()->ui_data = ggblist;
-	ggblist->list = gaim_get_blist();
 
 	ggblist->window = gnt_box_new(FALSE, FALSE);
 	gnt_box_set_toplevel(GNT_BOX(ggblist->window), TRUE);
--- a/console/libgnt/gnttree.c	Fri Jun 23 19:41:31 2006 +0000
+++ b/console/libgnt/gnttree.c	Fri Jun 23 20:42:25 2006 +0000
@@ -231,6 +231,9 @@
 {
 	GntTreeRow *row = data;
 
+	if (!row)
+		return;
+
 	g_free(row->text);
 	g_free(row);
 }