Mercurial > pidgin
diff finch/gntblist.c @ 27818:6ef1f49d6b6c
merge of '4687f2ad1aa97d621e389533af53704e6066f35a'
and 'de6bbf227459900b7451907360f092dfb33df8d6'
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Tue, 04 Aug 2009 03:52:57 +0000 |
parents | 13f555d07a3f |
children | 650ab9eb4b21 |
line wrap: on
line diff
--- a/finch/gntblist.c Tue Aug 04 03:51:30 2009 +0000 +++ b/finch/gntblist.c Tue Aug 04 03:52:57 2009 +0000 @@ -589,6 +589,16 @@ ggblist->manager = &default_manager; } +static void destroy_list(PurpleBuddyList *list) +{ + if (ggblist == NULL) + return; + + gnt_widget_destroy(ggblist->window); + g_free(ggblist); + ggblist = NULL; +} + static gboolean remove_new_empty_group(gpointer data) { @@ -849,7 +859,7 @@ blist_show, node_update, node_remove, - NULL, + destroy_list, NULL, finch_request_add_buddy, finch_request_add_chat, @@ -3184,12 +3194,6 @@ void finch_blist_uninit() { - if (ggblist == NULL) - return; - - gnt_widget_destroy(ggblist->window); - g_free(ggblist); - ggblist = NULL; } gboolean finch_blist_get_position(int *x, int *y)