[tracker] libtracker-direct: Fix shutdown after data manager error
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-direct: Fix shutdown after data manager error
- Date: Mon, 12 Nov 2018 10:47:35 +0000 (UTC)
commit a9de32d01a5eb4715631af0d037c2814153acc53
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Nov 11 17:30:29 2018 +0100
libtracker-direct: Fix shutdown after data manager error
If the data manager errors out, trying to free the connection afterwards
will trigger warnings trying to shut it down.
src/libtracker-direct/tracker-direct.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-direct/tracker-direct.c b/src/libtracker-direct/tracker-direct.c
index 674b8b7a5..3c54c7929 100644
--- a/src/libtracker-direct/tracker-direct.c
+++ b/src/libtracker-direct/tracker-direct.c
@@ -348,7 +348,8 @@ tracker_direct_connection_finalize (GObject *object)
if (priv->select_pool)
g_thread_pool_free (priv->select_pool, TRUE, FALSE);
- tracker_data_manager_shutdown (priv->data_manager);
+ if (priv->data_manager)
+ tracker_data_manager_shutdown (priv->data_manager);
g_clear_object (&priv->store);
g_clear_object (&priv->journal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]