diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-15 23:17:01 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-15 23:17:01 +0100 |
commit | 446862e5869e8888f829d9b6f4893663b7470274 (patch) | |
tree | d51bb757428d09a0ceca76dbe4f6b6566c1ae442 /src/ui/contacts.c | |
parent | 22504147521a36c513c200f9ed3f413b679d3f75 (diff) | |
download | messenger-gtk-446862e5869e8888f829d9b6f4893663b7470274.tar.gz messenger-gtk-446862e5869e8888f829d9b6f4893663b7470274.zip |
-fixed usage of lists, synced avatars to names and added member count
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
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 | } |