gsettings: Fix a leak in GSettingsAction

Every GSettingsAction was leaking its schema key (a few tens of bytes).

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=779265
This commit is contained in:
Philip Withnall 2017-02-27 10:05:58 +00:00
parent 08b6794ec2
commit 6bfb4ce191

View File

@ -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);