From 52cd1d85097943d8ba4bfab601f01dcd60c7d5a2 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Mon, 29 Aug 2011 12:39:19 -0400 Subject: * Make sure to unref the dbus-spy when the indicator is disposed. --- src/indicator-notifications.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3