summaryrefslogtreecommitdiff
path: root/src/daemon/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/stack.c')
-rw-r--r--src/daemon/stack.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/daemon/stack.c b/src/daemon/stack.c
index 0bfcae0..3805900 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);
}