Skip to content

GWeatherLocation: Fix warning on entry exit

Bastien Nocera requested to merge wip/hadess/fix-entry-warning into master

The world is not supposed to be unref'ed "by hand", but any extra references can be dropped. This fixes a warning on exit when destroying a location entry.

 #0  0x00007ffff775d295 in _g_log_abort (breakpoint=1) at glib/glib/gmessages.c:554
 #1  0x00007ffff775e4a9 in g_logv (log_domain=0x7ffff7fc1cc1 "GWeather", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fffffffc988)
    at glib/glib/gmessages.c:1371
 #2  0x00007ffff775e662 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at glib/glib/gmessages.c:1413
 #3  0x00007ffff7fb765d in gweather_location_unref (loc=0x642c90) at libgweather/libgweather/gweather-location.c:548
 #4  0x00007ffff7fba914 in finalize (object=0x56d230) at libgweather/libgweather/gweather-location-entry.c:149

Fixes: 96d1ac23

Edited by Bastien Nocera

Merge request reports