diff options
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/stack.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/daemon/stack.c b/src/daemon/stack.c index 1e89e49..97e328a 100644 --- a/src/daemon/stack.c +++ b/src/daemon/stack.c @@ -214,12 +214,19 @@ notify_stack_new (NotifyDaemon *daemon, void notify_stack_destroy (NotifyStack *stack) { + GList* l; + g_assert (stack != NULL); if (stack->update_id != 0) { g_source_remove (stack->update_id); } + for (l = stack->windows; l != NULL; l = l->next) { + GtkWindow *nw = GTK_WINDOW (l->data); + g_signal_handlers_disconnect_by_data(G_OBJECT(nw), stack); + } + g_list_free (stack->windows); g_free (stack); } |