aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-notifications.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c
index e34973b..1d5d106 100644
--- a/src/indicator-notifications.c
+++ b/src/indicator-notifications.c
@@ -256,6 +256,11 @@ indicator_notifications_dispose(GObject *object)
self->priv->menu = NULL;
}
+ if(self->priv->spy != NULL) {
+ g_object_unref(G_OBJECT(self->priv->spy));
+ self->priv->spy = NULL;
+ }
+
G_OBJECT_CLASS (indicator_notifications_parent_class)->dispose (object);
return;
}