mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
tests: Fix some minor memory leaks in tests
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -798,6 +798,7 @@ test_store_past_end (void)
|
||||
g_assert_cmpint (g_list_model_get_n_items (model), ==, 1);
|
||||
item = g_list_model_get_item (model, 0);
|
||||
g_assert_nonnull (item);
|
||||
g_object_unref (item);
|
||||
item = g_list_model_get_item (model, G_MAXUINT);
|
||||
g_assert_null (item);
|
||||
|
||||
|
Reference in New Issue
Block a user