gsettings: Fix a minor memory leak when getting GSettingsAction:state

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2020-12-15 10:54:41 +00:00
parent 98274e09de
commit 1cde07b978

View File

@ -3296,7 +3296,7 @@ g_settings_action_get_property (GObject *object, guint prop_id,
break;
case ACTION_PROP_STATE:
g_value_set_variant (value, g_settings_action_get_state (action));
g_value_take_variant (value, g_settings_action_get_state (action));
break;
default: