weather-service: free location service properly for destruction

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 <camelcasenick@bewares.it>
This commit is contained in:
Markus Göllnitz
2024-01-27 16:09:02 +00:00
committed by Georges Basile Stavracas Neto
parent 02465d1bed
commit 47db4a1de3
+1 -1
View File
@@ -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;