[glib] gsettings: Fix a leak in GSettingsAction



commit 6bfb4ce191cdf400c244187fb6ed05c5e76ea44a
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Feb 27 10:05:58 2017 +0000

    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

 gio/gsettings.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index b959633..66c6f9b 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]