From 1933513db4d73a9b7dfa19683351a9c37451b69a Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Thu, 30 Apr 2015 10:35:09 -0400 Subject: Fix crash from not NULLing a variant that we later might try to unref --- libqmenumodel/src/gtk/gtkmenutrackeritem.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libqmenumodel') 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]); } -- cgit v1.2.3