From: <sa...@us...> - 2006-11-17 02:15:33
|
Revision: 17763 http://svn.sourceforge.net/gaim/?rev=17763&view=rev Author: sadrul Date: 2006-11-16 18:15:28 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Fix a crash, plug a leak. Modified Paths: -------------- trunk/console/gntblist.c Modified: trunk/console/gntblist.c =================================================================== --- trunk/console/gntblist.c 2006-11-17 01:11:18 UTC (rev 17762) +++ trunk/console/gntblist.c 2006-11-17 02:15:28 UTC (rev 17763) @@ -1006,6 +1006,8 @@ gg_blist_toggle_tag_buddy(GaimBlistNode *node) { GList *iter; + if (GAIM_BLIST_NODE_IS_CHAT(node) || GAIM_BLIST_NODE_IS_GROUP(node)) + return; if (ggblist->tagged && (iter = g_list_find(ggblist->tagged, node)) != NULL) { ggblist->tagged = g_list_delete_link(ggblist->tagged, iter); } else { @@ -1444,6 +1446,8 @@ if (ggblist->typing) g_source_remove(ggblist->typing); remove_peripherals(ggblist); + if (ggblist->tagged) + g_list_free(ggblist->tagged); g_free(ggblist); ggblist = NULL; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |