From 6bfb4ce191cdf400c244187fb6ed05c5e76ea44a Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 27 Feb 2017 10:05:58 +0000 Subject: [PATCH] gsettings: Fix a leak in GSettingsAction Every GSettingsAction was leaking its schema key (a few tens of bytes). Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=779265 --- gio/gsettings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/gsettings.c b/gio/gsettings.c index b9596335b..66c6f9bde 100644 --- a/gio/gsettings.c +++ b/gio/gsettings.c @@ -3273,6 +3273,7 @@ g_settings_action_finalize (GObject *object) g_signal_handlers_disconnect_by_data (gsa->settings, gsa); g_object_unref (gsa->settings); + g_settings_schema_key_clear (&gsa->key); G_OBJECT_CLASS (g_settings_action_parent_class) ->finalize (object);