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 | 52cd1d85097943d8ba4bfab601f01dcd60c7d5a2 (patch) | |
tree | 55c64e0e0808c1d0f2d812a2312f642ed5854b9d /src/indicator-notifications.c | |
parent | e6a38a23cdee64cab4aa1cbdfc2848a0a91bd8e6 (diff) | |
download | ayatana-indicator-notifications-52cd1d85097943d8ba4bfab601f01dcd60c7d5a2.tar.gz ayatana-indicator-notifications-52cd1d85097943d8ba4bfab601f01dcd60c7d5a2.tar.bz2 ayatana-indicator-notifications-52cd1d85097943d8ba4bfab601f01dcd60c7d5a2.zip |
* Make sure to unref the dbus-spy when the indicator is disposed.
Diffstat (limited to 'src/indicator-notifications.c')
-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; } |