[libgweather/leak-check: 2/2] tests: Avoid an invalid read caused by a double unref




commit e0f384ae8d21e2fcf206334340ffaa0ef34236b6
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Oct 15 18:38:57 2021 +0100

    tests: Avoid an invalid read caused by a double unref

 libgweather/tests/test_libgweather.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/libgweather/tests/test_libgweather.c b/libgweather/tests/test_libgweather.c
index bb3d1d3b..9adb0e36 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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]