[gnome-applets] gweather: avoid a critical



commit 00e16a53e402edbbf1ba9693e500f1ee36ac8b5c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Mar 12 21:57:40 2018 +0200

    gweather: avoid a critical
    
    We should not unref GWeatherLocation that is returned from
    gweather_location_get_world, it is owned by libgweather.

 gweather/src/gweather-xml.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gweather/src/gweather-xml.c b/gweather/src/gweather-xml.c
index b985d15..894a96d 100644
--- a/gweather/src/gweather-xml.c
+++ b/gweather/src/gweather-xml.c
@@ -159,7 +159,5 @@ gweather_xml_load_locations (void)
        store = NULL;
     }
 
-    gweather_location_unref (world);
-
     return (GtkTreeModel *)store;
 }


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