[glib] tests: Fix a double-unref in the GSettings unit tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests: Fix a double-unref in the GSettings unit tests
- Date: Tue, 28 Feb 2017 16:11:37 +0000 (UTC)
commit 43fbb8652dbf516b5bf5cf91df46a2c2f3a93755
Author: Philip Withnall <withnall endlessm com>
Date: Mon Feb 27 10:07:14 2017 +0000
tests: Fix a double-unref in the GSettings unit tests
g_settings_schema_source_get_default() is (transfer none), not (transfer
full).
Spotted by Marvin Schmidt.
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=779265
gio/tests/gsettings.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index 18d28c2..dfd4ee4 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -2373,10 +2373,8 @@ test_schema_list_keys (void)
"farewell",
NULL));
-
g_strfreev (keys);
g_settings_schema_unref (schema);
- g_settings_schema_source_unref (src);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]