[evolution-ews] Revert "Save changes before finalizing ECalBackendStore."



commit 23455cb86a88900a823760a331f1f8600f55865b
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Jan 9 14:32:45 2013 -0500

    Revert "Save changes before finalizing ECalBackendStore."
    
    This reverts commit 0496d0691cfdfb1e5ad4a03da1f791d533ad1bd5.
    
    Thought of a better way to solve the final save problem that doesn't
    involve adding new API or modifying backends.

 src/calendar/e-cal-backend-ews.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 119e667..e2feaaf 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -4073,12 +4073,6 @@ e_cal_backend_ews_dispose (GObject *object)
 		priv->cnc = NULL;
 	}
 
-	if (priv->store) {
-		e_cal_backend_store_save (priv->store);
-		g_object_unref (priv->store);
-		priv->store = NULL;
-	}
-
 	G_OBJECT_CLASS (e_cal_backend_ews_parent_class)->dispose (object);
 }
 
@@ -4098,6 +4092,11 @@ e_cal_backend_ews_finalize (GObject *object)
 	/* Clean up */
 	g_rec_mutex_clear (&priv->rec_mutex);
 
+	if (priv->store) {
+		g_object_unref (priv->store);
+		priv->store = NULL;
+	}
+
 	if (priv->folder_id) {
 		g_free (priv->folder_id);
 		priv->folder_id = NULL;



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