diff options
author | Jason Conti <jason.conti@gmail.com> | 2011-08-29 12:39:19 -0400 |
---|---|---|
committer | Jason Conti <jason.conti@gmail.com> | 2011-08-29 12:39:19 -0400 |
commit | 0c47caa98d6494d2a9255a46ca2a256d7f6da9c6 (patch) | |
tree | 55c64e0e0808c1d0f2d812a2312f642ed5854b9d /src | |
parent | 4873a2b08424393566a416c12003b5ba94d7a414 (diff) | |
download | ayatana-indicator-notifications-0c47caa98d6494d2a9255a46ca2a256d7f6da9c6.tar.gz ayatana-indicator-notifications-0c47caa98d6494d2a9255a46ca2a256d7f6da9c6.tar.bz2 ayatana-indicator-notifications-0c47caa98d6494d2a9255a46ca2a256d7f6da9c6.zip |
* Make sure to unref the dbus-spy when the indicator is disposed.
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-notifications.c | 5 |
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; } |