From 47db4a1de363e1ea7bb81efdc561c0fc6d4b0f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20G=C3=B6llnitz?= Date: Sat, 13 Jan 2024 04:58:59 +0100 Subject: [PATCH] weather-service: free location service properly for destruction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is needed as the location service is not properly stopped from the portal backend if running in a sandbox otherwise. Signed-off-by: Markus Göllnitz --- src/weather/gcal-weather-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;