[gnome-settings-daemon] datetime: Don't unref the GClueClient
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] datetime: Don't unref the GClueClient
- Date: Fri, 22 Jan 2016 20:35:17 +0000 (UTC)
commit a0475947177d278f9f49124fcc629c3e9cd26db6
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jan 22 21:22:09 2016 +0100
datetime: Don't unref the GClueClient
We obtain it through gclue_simple_get_client(), which doesn't add
a new reference, so the client stays owned by the GClueSimple
destroyed shortly below.
Fixes occasional crashes on shutdown.
plugins/datetime/gsd-timezone-monitor.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/datetime/gsd-timezone-monitor.c b/plugins/datetime/gsd-timezone-monitor.c
index 4b9f030..2c94251 100644
--- a/plugins/datetime/gsd-timezone-monitor.c
+++ b/plugins/datetime/gsd-timezone-monitor.c
@@ -339,10 +339,8 @@ gsd_timezone_monitor_finalize (GObject *obj)
g_clear_object (&priv->cancellable);
}
- if (priv->geoclue_client) {
+ if (priv->geoclue_client)
gclue_client_call_stop (priv->geoclue_client, NULL, NULL, NULL);
- g_clear_object (&priv->geoclue_client);
- }
g_clear_object (&priv->dtm);
g_clear_object (&priv->geoclue_simple);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]