tests: Various minor leak fixes in the GLib tests

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2018-06-27 09:58:28 +01:00
parent f7bd41fdaa
commit 6a22663d9a
3 changed files with 5 additions and 0 deletions

View File

@ -2550,6 +2550,7 @@ double_free (void)
g_option_context_free (context); g_option_context_free (context);
g_clear_error (&error); g_clear_error (&error);
g_strfreev (argv);
} }

View File

@ -1379,6 +1379,8 @@ test_empty (void)
} }
g_assert_true (g_sequence_is_empty (seq)); g_assert_true (g_sequence_is_empty (seq));
g_sequence_free (seq);
} }
int int

View File

@ -394,6 +394,8 @@ test_spawn_nonexistent (void)
g_assert_cmpint (exit_status, ==, -1); g_assert_cmpint (exit_status, ==, -1);
g_ptr_array_free (argv, TRUE); g_ptr_array_free (argv, TRUE);
g_clear_error (&error);
} }
int int