aboutsummaryrefslogtreecommitdiff
path: root/src/ido-menu-item.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-08-27 17:22:53 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-08-27 17:22:53 +0200
commit99373eb1ab1ce5aa293857625ccbe53211cd38ee (patch)
treeb81c33e531c7975ffd977c6cf872807a1f660738 /src/ido-menu-item.c
parentc3bbc027e18bf05520b7a94127da20338855c535 (diff)
downloadayatana-indicator-messages-99373eb1ab1ce5aa293857625ccbe53211cd38ee.tar.gz
ayatana-indicator-messages-99373eb1ab1ce5aa293857625ccbe53211cd38ee.tar.bz2
ayatana-indicator-messages-99373eb1ab1ce5aa293857625ccbe53211cd38ee.zip
IdoMenuItem: clear target pointer in dispose
Diffstat (limited to 'src/ido-menu-item.c')
-rw-r--r--src/ido-menu-item.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ido-menu-item.c b/src/ido-menu-item.c
index 9700b1a..cee032f 100644
--- a/src/ido-menu-item.c
+++ b/src/ido-menu-item.c
@@ -231,7 +231,10 @@ ido_menu_item_dispose (GObject *object)
g_clear_object (&self->priv->label);
if (self->priv->target)
- g_variant_unref (self->priv->target);
+ {
+ g_variant_unref (self->priv->target);
+ self->priv->target = NULL;
+ }
G_OBJECT_CLASS (ido_menu_item_parent_class)->dispose (object);
}