diff options
Diffstat (limited to 'src/ui/contacts.c')
-rw-r--r-- | src/ui/contacts.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ui/contacts.c b/src/ui/contacts.c index 63157ff..ad46773 100644 --- a/src/ui/contacts.c +++ b/src/ui/contacts.c | |||
@@ -257,9 +257,21 @@ ui_contacts_dialog_init(MESSENGER_Application *app, | |||
257 | void | 257 | void |
258 | ui_contacts_dialog_cleanup(UI_CONTACTS_Handle *handle) | 258 | ui_contacts_dialog_cleanup(UI_CONTACTS_Handle *handle) |
259 | { | 259 | { |
260 | GList *list = gtk_container_get_children( | ||
261 | GTK_CONTAINER(handle->contacts_listbox) | ||
262 | ); | ||
263 | |||
264 | while (list) | ||
265 | { | ||
266 | if (list->data) | ||
267 | g_hash_table_remove(handle->bindings, list->data); | ||
268 | |||
269 | list = list->next; | ||
270 | } | ||
271 | |||
260 | g_object_unref(handle->builder); | 272 | g_object_unref(handle->builder); |
261 | 273 | ||
262 | GList *list = handle->contact_entries; | 274 | list = handle->contact_entries; |
263 | 275 | ||
264 | while (list) { | 276 | while (list) { |
265 | if (list->data) | 277 | if (list->data) |