[tracker] Correctly unref g_settings_schema
- From: Thomas Bechtold <toabctl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Correctly unref g_settings_schema
- Date: Thu, 12 Oct 2017 15:43:24 +0000 (UTC)
commit 077045e6427f6e4499e87c84f0eb936097a0804e
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker/tracker-config.c b/src/tracker/tracker-config.c
index 9dfc143..59d7561 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]