diff options
Diffstat (limited to 'src/application.c')
-rw-r--r-- | src/application.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/application.c b/src/application.c index 24b6490..7c78de0 100644 --- a/src/application.c +++ b/src/application.c | |||
@@ -70,6 +70,7 @@ application_init(MESSENGER_Application *app, | |||
70 | ); | 70 | ); |
71 | 71 | ||
72 | notify_init("Messenger-GTK"); | 72 | notify_init("Messenger-GTK"); |
73 | app->notifications = NULL; | ||
73 | 74 | ||
74 | _load_ui_stylesheets(); | 75 | _load_ui_stylesheets(); |
75 | 76 | ||
@@ -163,6 +164,18 @@ application_run(MESSENGER_Application *app) | |||
163 | 164 | ||
164 | pthread_mutex_destroy(&(app->chat.mutex)); | 165 | pthread_mutex_destroy(&(app->chat.mutex)); |
165 | 166 | ||
167 | GList *list = app->notifications; | ||
168 | |||
169 | while (list) { | ||
170 | if (list->data) | ||
171 | notify_notification_close(NOTIFY_NOTIFICATION(list->data), NULL); | ||
172 | |||
173 | list = list->next; | ||
174 | } | ||
175 | |||
176 | if (app->notifications) | ||
177 | g_list_free(app->notifications); | ||
178 | |||
166 | notify_uninit(); | 179 | notify_uninit(); |
167 | 180 | ||
168 | g_object_unref(app->application); | 181 | g_object_unref(app->application); |