tests: Fix some minor memory leaks in tests

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall
2019-08-22 11:27:43 +03:00
parent 8ae07a727a
commit 39052a1cfc
2 changed files with 8 additions and 3 deletions

View File

@@ -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);