From e0f384ae8d21e2fcf206334340ffaa0ef34236b6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 15 Oct 2021 18:38:57 +0100 Subject: tests: Avoid an invalid read caused by a double unref --- libgweather/tests/test_libgweather.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libgweather/tests') diff --git a/libgweather/tests/test_libgweather.c b/libgweather/tests/test_libgweather.c index bb3d1d3..9adb0e3 100644 --- a/libgweather/tests/test_libgweather.c +++ b/libgweather/tests/test_libgweather.c @@ -655,7 +655,6 @@ test_location_names (void) g_assert_cmpstr (gweather_location_get_name (brussels), ==, "Brussels"); g_assert_cmpstr (gweather_location_get_sort_name (brussels), ==, "brussels"); g_assert_cmpstr (gweather_location_get_english_name (brussels), ==, "Brussels"); - gweather_location_unref (brussels); old_locale = setlocale (LC_ALL, "fr_FR.UTF-8"); if (old_locale == NULL) { -- cgit v1.2.1