mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
tests: Various minor leak fixes in the GLib tests
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
f7bd41fdaa
commit
6a22663d9a
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user