diff options
Diffstat (limited to 'src/ui/contacts.c')
-rw-r--r-- | src/ui/contacts.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/contacts.c b/src/ui/contacts.c index 842cfb5..8fd38e0 100644 --- a/src/ui/contacts.c +++ b/src/ui/contacts.c | |||
@@ -147,7 +147,7 @@ void | |||
147 | ui_contacts_dialog_init(MESSENGER_Application *app, | 147 | ui_contacts_dialog_init(MESSENGER_Application *app, |
148 | UI_CONTACTS_Handle *handle) | 148 | UI_CONTACTS_Handle *handle) |
149 | { | 149 | { |
150 | handle->contact_entries = g_list_alloc(); | 150 | handle->contact_entries = NULL; |
151 | 151 | ||
152 | handle->builder = gtk_builder_new_from_file("resources/ui/contacts.ui"); | 152 | handle->builder = gtk_builder_new_from_file("resources/ui/contacts.ui"); |
153 | 153 | ||
@@ -225,5 +225,6 @@ ui_contacts_dialog_cleanup(UI_CONTACTS_Handle *handle) | |||
225 | list = list->next; | 225 | list = list->next; |
226 | } | 226 | } |
227 | 227 | ||
228 | g_list_free(handle->contact_entries); | 228 | if (handle->contact_entries) |
229 | g_list_free(handle->contact_entries); | ||
229 | } | 230 | } |