summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-03-01 16:50:51 +0000
committerBastien Nocera <hadess@hadess.net>2019-03-01 16:50:51 +0000
commit34ab4d7e9ab9a44f5d4b7f26f43c5c8a44fb6dbb (patch)
tree9d5ddc2183aec48961876f85541c8bfc242d54c7
parent1a952bde35e5a314d655cbe697efca63d6e3d817 (diff)
parentc50aad90d572e3f2300b5f35b89b8085d0e88679 (diff)
downloadlibgweather-34ab4d7e9ab9a44f5d4b7f26f43c5c8a44fb6dbb.tar.gz
Merge branch 'wip/hadess/fix-entry-warning' into 'master'
GWeatherLocation: Fix warning on entry exit See merge request GNOME/libgweather!20
-rw-r--r--libgweather/gweather-location.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 81fc122..6db89a1 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -545,7 +545,7 @@ void
gweather_location_unref (GWeatherLocation *loc)
{
g_return_if_fail (loc != NULL);
- g_return_if_fail (loc->level != GWEATHER_LOCATION_WORLD);
+ g_return_if_fail (loc->level != GWEATHER_LOCATION_WORLD || loc->ref_count > 1);
_gweather_location_unref_no_check (loc);
}