# HG changeset patch # User Sadrul Habib Chowdhury # Date 1151095345 0 # Node ID 55fb5cd9bac9fad19bcb171a919ad334802a609d # Parent c1e3f7c75c3f2308ce0225540d2223d7ab3b6289 [gaim-migrate @ 16322] Fix a crash. committer: Tailor Script diff -r c1e3f7c75c3f -r 55fb5cd9bac9 console/gntblist.c --- 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); diff -r c1e3f7c75c3f -r 55fb5cd9bac9 console/libgnt/gnttree.c --- 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); }