# HG changeset patch # User Sadrul Habib Chowdhury # Date 1163729728 0 # Node ID fb98e9c45607ced2e96f9de85eb14e6cb9de16d7 # Parent 8186cb621d2b0e9b636f19b9b26aaddb5c01bb78 [gaim-migrate @ 17763] Fix a crash, plug a leak. committer: Tailor Script diff -r 8186cb621d2b -r fb98e9c45607 console/gntblist.c --- a/console/gntblist.c Fri Nov 17 01:11:18 2006 +0000 +++ b/console/gntblist.c Fri Nov 17 02:15:28 2006 +0000 @@ -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; }