[evolution-data-server/gnome-3-10] Bug #709550 - CamelService: Do not call disconnect_sync from its finalize



commit f3d147c2a04b3a0d18e988002d528763a1ea80dc
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 7 12:24:09 2013 +0200

    Bug #709550 - CamelService: Do not call disconnect_sync from its finalize

 camel/camel-service.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/camel/camel-service.c b/camel/camel-service.c
index 777a344..6bda062 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -647,6 +647,10 @@ service_dispose (GObject *object)
 
        priv = CAMEL_SERVICE_GET_PRIVATE (object);
 
+       if (priv->status == CAMEL_SERVICE_CONNECTED)
+               CAMEL_SERVICE_GET_CLASS (object)->disconnect_sync (
+                       CAMEL_SERVICE (object), TRUE, NULL, NULL);
+
        g_weak_ref_set (&priv->session, NULL);
 
        if (priv->settings != NULL) {
@@ -665,10 +669,6 @@ service_finalize (GObject *object)
 
        priv = CAMEL_SERVICE_GET_PRIVATE (object);
 
-       if (priv->status == CAMEL_SERVICE_CONNECTED)
-               CAMEL_SERVICE_GET_CLASS (object)->disconnect_sync (
-                       CAMEL_SERVICE (object), TRUE, NULL, NULL);
-
        g_mutex_clear (&priv->settings_lock);
 
        g_free (priv->display_name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]