From d892cf6feb215b3e2349b437c02d561926ea8259 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 27 Feb 2017 10:08:16 +0000 Subject: [PATCH] tests: Fix some memory leaks in the GSettings unit tests Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=779265 --- gio/tests/gsettings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c index dfd4ee456..b1bbd4ed1 100644 --- a/gio/tests/gsettings.c +++ b/gio/tests/gsettings.c @@ -2438,6 +2438,8 @@ test_actions (void) g_assert_cmpstr (g_variant_get_string (state, NULL), ==, "kthxbye"); g_free (name); + g_variant_type_free (param_type); + g_variant_type_free (state_type); g_variant_unref (state); g_object_unref (string); @@ -2627,6 +2629,7 @@ main (int argc, char *argv[]) g_assert (g_file_get_contents (SRCDIR "/org.gtk.test.gschema.xml.orig", &schema_text, NULL, NULL)); g_assert (g_file_set_contents ("org.gtk.test.gschema.xml", schema_text, -1, NULL)); + g_free (schema_text); g_remove ("gschemas.compiled"); g_assert (g_spawn_command_line_sync ("../glib-compile-schemas --targetdir=. "