mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
GtkModelMenuItem: don't leak a GVariant
This commit is contained in:
parent
9cc98f9d9b
commit
2e64177e3f
@ -230,6 +230,9 @@ gtk_model_menu_item_setup (GtkModelMenuItem *item,
|
|||||||
|
|
||||||
else
|
else
|
||||||
gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);
|
gtk_widget_set_sensitive (GTK_WIDGET (item), FALSE);
|
||||||
|
|
||||||
|
if (state != NULL)
|
||||||
|
g_variant_unref (state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user