aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2015-04-30 10:35:09 -0400
committerMichael Terry <michael.terry@canonical.com>2015-04-30 10:35:09 -0400
commit1933513db4d73a9b7dfa19683351a9c37451b69a (patch)
tree0dba9fb0a4ae10904a8eef9ee88e31aa7685e93b /libqmenumodel/src
parent19e49491df0dd0954c103c925ea26d7543b5c4e4 (diff)
downloadqmenumodel-1933513db4d73a9b7dfa19683351a9c37451b69a.tar.gz
qmenumodel-1933513db4d73a9b7dfa19683351a9c37451b69a.tar.bz2
qmenumodel-1933513db4d73a9b7dfa19683351a9c37451b69a.zip
Fix crash from not NULLing a variant that we later might try to unref
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r--libqmenumodel/src/gtk/gtkmenutrackeritem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqmenumodel/src/gtk/gtkmenutrackeritem.c b/libqmenumodel/src/gtk/gtkmenutrackeritem.c
index 34e168a..0197701 100644
--- a/libqmenumodel/src/gtk/gtkmenutrackeritem.c
+++ b/libqmenumodel/src/gtk/gtkmenutrackeritem.c
@@ -400,6 +400,7 @@ gtk_menu_tracker_item_action_removed (GtkActionObserver *observer,
if (self->action_state != NULL)
{
g_variant_unref (self->action_state);
+ self->action_state = NULL;
g_object_notify_by_pspec (G_OBJECT (self), gtk_menu_tracker_item_pspecs[PROP_ACTION_STATE]);
}