[evolution-ews] Fix a critical warning crasher
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix a critical warning crasher
- Date: Mon, 19 Dec 2011 10:13:18 +0000 (UTC)
commit f1ed78439fd3b5ce82854d6fe4a7c7e214d7b8b9
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Thu Dec 15 12:53:58 2011 +0530
Fix a critical warning crasher
src/camel/camel-ews-store.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index 05ec305..926f780 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -328,8 +328,10 @@ ews_disconnect_sync (CamelService *service, gboolean clean, GCancellable *cancel
camel_service_lock (service, CAMEL_SERVICE_REC_CONNECT_LOCK);
/* TODO cancel all operations in the connection */
- g_object_unref (ews_store->priv->cnc);
- ews_store->priv->cnc = NULL;
+ if (ews_store->priv->cnc) {
+ g_object_unref (ews_store->priv->cnc);
+ ews_store->priv->cnc = NULL;
+ }
camel_service_unlock (service, CAMEL_SERVICE_REC_CONNECT_LOCK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]