summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2022-01-04 00:50:17 +0000
committerBenjamin Berg <bberg@redhat.com>2022-02-10 18:02:28 +0100
commitf390e6e9d56ce7d3e3a725b8204d81c0b6240515 (patch)
treec1f2bb2435cfcf3c9a3a05e7082b9cc7657539ae /plugins
parent66cae69ad82cfc59435016fba737ce046ffb7e66 (diff)
downloadgnome-settings-daemon-f390e6e9d56ce7d3e3a725b8204d81c0b6240515.tar.gz
plugins/datetime/weather-tz.c: Use g_object_ref() instead gweather_location_ref()
Diffstat (limited to 'plugins')
-rw-r--r--plugins/datetime/weather-tz.c2
1 files changed, 1 insertions, 1 deletions
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));