diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-10-15 18:38:57 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-10-15 18:38:57 +0100 |
commit | e0f384ae8d21e2fcf206334340ffaa0ef34236b6 (patch) | |
tree | 3ae87dac713171d7f260ba464f7e641bbe90bb85 /libgweather/tests | |
parent | 2c9392d767702a1a79d6af701d94056422719636 (diff) | |
download | libgweather-e0f384ae8d21e2fcf206334340ffaa0ef34236b6.tar.gz |
tests: Avoid an invalid read caused by a double unref
Diffstat (limited to 'libgweather/tests')
-rw-r--r-- | libgweather/tests/test_libgweather.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) { |