mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Don't call g_object_unref on a variant
Tsk, tsk...
This commit is contained in:
parent
1eee7fb103
commit
8ae7921708
@ -24,7 +24,7 @@ activate_toggle (GSimpleAction *action,
|
||||
|
||||
state = g_action_get_state (G_ACTION (action));
|
||||
g_action_change_state (G_ACTION (action), g_variant_new_boolean (!g_variant_get_boolean (state)));
|
||||
g_object_unref (state);
|
||||
g_variant_unref (state);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user