[tracker-miners/wip/carlosg/cli-split: 6/23] Correctly unref g_settings_schema



commit 083aa62a94db06d9924989da4c1ddd3a2a8cd331
Author: Thomas Bechtold <tbechtold suse com>
Date:   Thu Oct 12 17:21:00 2017 +0200

    Correctly unref g_settings_schema
    
    This fixes:
    
    GLib-GObject-CRITICAL **: g_object_unref: assertion
    'G_IS_OBJECT (object)' failed
    
    when calling "tracker daemon"
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788883

 src/tracker/tracker-config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker/tracker-config.c b/src/tracker/tracker-config.c
index 9dfc143db..59d756132 100644
--- a/src/tracker/tracker-config.c
+++ b/src/tracker/tracker-config.c
@@ -206,7 +206,7 @@ tracker_gsettings_free (GSList *all)
 
                g_free (c->name);
                g_object_unref (c->settings);
-               g_object_unref (c->schema);
+               g_clear_pointer (&c->schema, g_settings_schema_unref);
                g_slice_free (ComponentGSettings, c);
        }
 }


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