diff --git a/src/weather/gcal-weather-service.c b/src/weather/gcal-weather-service.c index 54a0b1dd..7fdacd3f 100644 --- a/src/weather/gcal-weather-service.c +++ b/src/weather/gcal-weather-service.c @@ -1203,7 +1203,7 @@ gcal_weather_service_stop (GcalWeatherService *self) (GAsyncReadyCallback) on_gclue_client_stopped_cb, self->location_service); } - self->location_service = NULL; + g_clear_object (&self->location_service); } GCAL_EXIT;