[evolution-ews] Save changes before finalizing ECalBackendStore.



commit 0496d0691cfdfb1e5ad4a03da1f791d533ad1bd5
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Jan 9 12:10:01 2013 -0500

    Save changes before finalizing ECalBackendStore.

 src/calendar/e-cal-backend-ews.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index e2feaaf..119e667 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -4073,6 +4073,12 @@ 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);
 }
 
@@ -4092,11 +4098,6 @@ 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]