summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@endlessos.org>2021-02-04 19:04:15 -0800
committerPhaedrus Leeds <mwleeds@endlessos.org>2021-02-05 16:27:23 -0800
commit9f5af11c1c40b79ea053ef2cd78fb5b523fde291 (patch)
tree998ba79e6766508d78ab69706f28e8700157ba31
parent5c9bb6b4e7455e943f3b18c0bcf28c55c01c8434 (diff)
downloadflatpak-tweak-list-remote-related-api.tar.gz
testlibrary: Fix memory leakstweak-list-remote-related-api
-rw-r--r--tests/testlibrary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testlibrary.c b/tests/testlibrary.c
index b455574b..abe7b81a 100644
--- a/tests/testlibrary.c
+++ b/tests/testlibrary.c
@@ -1352,10 +1352,10 @@ test_list_remote_related_refs (void)
// Make the test with extra-languages, instead of languages
clean_languages();
configure_extra_languages();
-
- inst = flatpak_installation_new_user (NULL, &error);
+ flatpak_installation_drop_caches (inst, NULL, &error);
g_assert_no_error (error);
+ g_clear_pointer (&refs, g_ptr_array_unref);
refs = flatpak_installation_list_remote_related_refs_sync (inst, repo_name, app, NULL, &error);
g_assert_nonnull (refs);
g_assert_no_error (error);