[gnome-settings-daemon/ebassi/gweather-4: 4/6] plugins/datetime/weather-tz.c: Use g_object_ref() instead gweather_location_ref()




commit 3ef57cd9fb36caa2253b83348032fe78700981b4
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Jan 4 00:50:17 2022 +0000

    plugins/datetime/weather-tz.c: Use g_object_ref() instead gweather_location_ref()

 plugins/datetime/weather-tz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/datetime/weather-tz.c b/plugins/datetime/weather-tz.c
index b76a2b8c..f2d38d96 100644
--- a/plugins/datetime/weather-tz.c
+++ b/plugins/datetime/weather-tz.c
@@ -32,7 +32,7 @@ location_get_cities (GWeatherLocation *parent_location)
 
         while ((child = gweather_location_next_child (parent_location, child))) {
                 if (gweather_location_get_level (child) == GWEATHER_LOCATION_CITY) {
-                        cities = g_list_prepend (cities, gweather_location_ref (child));
+                        cities = g_list_prepend (cities, g_object_ref (child));
                 } else {
                         cities = g_list_concat (cities,
                                                 location_get_cities (child));


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