[evolution-ews] Remove refresh_timeout in ECalBackendEws' dispose, rather than finalize
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Remove refresh_timeout in ECalBackendEws' dispose, rather than finalize
- Date: Wed, 8 Aug 2012 11:17:36 +0000 (UTC)
commit 52d5998639cdc3cf45bb7f4b1950bcf23ada72f0
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 8 13:16:55 2012 +0200
Remove refresh_timeout in ECalBackendEws' dispose, rather than finalize
src/calendar/e-cal-backend-ews.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 36877b7..5290383 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -4075,6 +4075,11 @@ e_cal_backend_ews_dispose (GObject *object)
cbews = E_CAL_BACKEND_EWS (object);
priv = cbews->priv;
+ if (priv->refresh_timeout) {
+ g_source_remove (priv->refresh_timeout);
+ priv->refresh_timeout = 0;
+ }
+
if (priv->cancellable) {
g_cancellable_cancel (priv->cancellable);
g_object_unref (priv->cancellable);
@@ -4130,11 +4135,6 @@ e_cal_backend_ews_finalize (GObject *object)
priv->default_zone = NULL;
}
- if (priv->refresh_timeout) {
- g_source_remove (priv->refresh_timeout);
- priv->refresh_timeout = 0;
- }
-
g_hash_table_destroy (priv->item_id_hash);
if (priv->refreshing_done) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]