aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}