[libgweather] metno: Fix forecast list



commit d49f7f90dc8af135260009e313e718704b284257
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jan 12 23:32:41 2021 +0100

    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.

 libgweather/weather-metno.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/weather-metno.c b/libgweather/weather-metno.c
index ded30434..b157a983 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);
        }
     }
 


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