From 1cde07b9789ff3b58be4af4596065d4f6fc365f0 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 15 Dec 2020 10:54:41 +0000 Subject: [PATCH] gsettings: Fix a minor memory leak when getting GSettingsAction:state Signed-off-by: Philip Withnall --- gio/gsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gsettings.c b/gio/gsettings.c index 4332ebe44..9a04a8630 100644 --- a/gio/gsettings.c +++ b/gio/gsettings.c @@ -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: