summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2021-01-12 23:32:41 +0100
committerBastien Nocera <hadess@hadess.net>2021-01-12 22:58:21 +0000
commitd49f7f90dc8af135260009e313e718704b284257 (patch)
treeb3a9cb3018d039dadd5d86cf2472f09b01375832
parentfc714b10c4cd78cf94d1d9f01f4b72d78a568047 (diff)
downloadlibgweather-d49f7f90dc8af135260009e313e718704b284257.tar.gz
metno: Fix forecast list
Since commit da3b4de921fc, parsed forecast infos aren't added to the forecast_list of the original info, but to their own list instead. Fix this to actually return the list of forecasts and not leak the created info objects.
-rw-r--r--libgweather/weather-metno.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgweather/weather-metno.c b/libgweather/weather-metno.c
index ded3043..b157a98 100644
--- a/libgweather/weather-metno.c
+++ b/libgweather/weather-metno.c
@@ -370,7 +370,7 @@ parse_forecast_xml_new (GWeatherInfo *original_info,
fill_info_from_node (info, location);
}
- info->forecast_list = g_slist_append (info->forecast_list, info);
+ original_info->forecast_list = g_slist_append (original_info->forecast_list, info);
}
}