diff options
Diffstat (limited to 'src/ui/chat_entry.c')
-rw-r--r-- | src/ui/chat_entry.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/chat_entry.c b/src/ui/chat_entry.c index 3c9461e..f538978 100644 --- a/src/ui/chat_entry.c +++ b/src/ui/chat_entry.c | |||
@@ -34,6 +34,8 @@ ui_chat_entry_new(MESSENGER_Application *app) | |||
34 | { | 34 | { |
35 | UI_CHAT_ENTRY_Handle* handle = g_malloc(sizeof(UI_CHAT_ENTRY_Handle)); | 35 | UI_CHAT_ENTRY_Handle* handle = g_malloc(sizeof(UI_CHAT_ENTRY_Handle)); |
36 | 36 | ||
37 | memset(handle, 0, sizeof(*handle)); | ||
38 | |||
37 | handle->chat = ui_chat_new(app); | 39 | handle->chat = ui_chat_new(app); |
38 | handle->builder = gtk_builder_new_from_resource( | 40 | handle->builder = gtk_builder_new_from_resource( |
39 | application_get_resource_path(app, "ui/chat_entry.ui") | 41 | application_get_resource_path(app, "ui/chat_entry.ui") |
@@ -153,5 +155,8 @@ ui_chat_entry_delete(UI_CHAT_ENTRY_Handle *handle) | |||
153 | 155 | ||
154 | g_object_unref(handle->builder); | 156 | g_object_unref(handle->builder); |
155 | 157 | ||
158 | if (handle->update) | ||
159 | g_source_remove(handle->update); | ||
160 | |||
156 | g_free(handle); | 161 | g_free(handle); |
157 | } | 162 | } |