[glib: 5/6] tests: Fix a minor memory leak in the gsettings test



commit 6c14e9a14bb15abd62b6804dd88ef3f103ae7160
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Jan 23 16:25:33 2019 +0000

    tests: Fix a minor memory leak in the gsettings test
    
    g_settings_backend_get_default() returns a strong reference.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/tests/gsettings.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index fb19e5156..f254c3195 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -2442,6 +2442,7 @@ test_schema_source (void)
   g_settings_schema_unref (schema);
 
   g_settings_schema_source_unref (source);
+  g_object_unref (backend);
 }
 
 static void


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