diff options
author | Phaedrus Leeds <mwleeds@endlessos.org> | 2021-02-04 19:04:15 -0800 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2021-02-10 09:17:53 +0100 |
commit | 7224809bc1e2584708b29ec1389cbcf1eeba1d3f (patch) | |
tree | 668125805b1e617e3cb466469bfdca4fa9da30bd | |
parent | 2a111e504294d2711ba85ab22a72b116fef6a7e2 (diff) | |
download | flatpak-7224809bc1e2584708b29ec1389cbcf1eeba1d3f.tar.gz |
testlibrary: Fix memory leaks
-rw-r--r-- | tests/testlibrary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testlibrary.c b/tests/testlibrary.c index 8411693e..292b1a94 100644 --- a/tests/testlibrary.c +++ b/tests/testlibrary.c @@ -1354,10 +1354,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); |