Mercurial > pidgin.yaz
changeset 14985:fb98e9c45607
[gaim-migrate @ 17763]
Fix a crash, plug a leak.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 17 Nov 2006 02:15:28 +0000 |
parents | 8186cb621d2b |
children | 6bdcfafc2259 |
files | console/gntblist.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }