mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 08:53:39 +02:00
tests: Various minor leak fixes in the GLib tests
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -2550,6 +2550,7 @@ double_free (void)
|
||||
|
||||
g_option_context_free (context);
|
||||
g_clear_error (&error);
|
||||
g_strfreev (argv);
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1379,6 +1379,8 @@ test_empty (void)
|
||||
}
|
||||
|
||||
g_assert_true (g_sequence_is_empty (seq));
|
||||
|
||||
g_sequence_free (seq);
|
||||
}
|
||||
|
||||
int
|
||||
|
@@ -394,6 +394,8 @@ test_spawn_nonexistent (void)
|
||||
g_assert_cmpint (exit_status, ==, -1);
|
||||
|
||||
g_ptr_array_free (argv, TRUE);
|
||||
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
int
|
||||
|
Reference in New Issue
Block a user