[evolution-ews] Fix a crash on master. Do not unref CamelService returned by camel_session_get_service 3.2 onwards.



commit 1bd78749d1b2103e0e61acf49cc91a1952dd5051
Author: Chenthill Palanisamy <pchenthill suse com>
Date:   Mon Oct 3 16:58:45 2011 +0530

    Fix a crash on master. Do not unref CamelService returned by
    camel_session_get_service 3.2 onwards. Unref it for earlier versions.

 .../exchange-ews-account-listener.c                |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-ews-account-listener.c b/src/account-setup-eplugin/exchange-ews-account-listener.c
index 78207a9..9aff7f4 100644
--- a/src/account-setup-eplugin/exchange-ews-account-listener.c
+++ b/src/account-setup-eplugin/exchange-ews-account-listener.c
@@ -156,7 +156,10 @@ ews_account_removed (EAccountList *account_listener, EAccount *account)
 	g_free (storage_path);
 	g_free (summary_file);
 	ews_account_info_free (info);
+
+#if ! EDS_CHECK_VERSION (3,1,0)
 	g_object_unref (service);
+#endif	
 }
 
 static gboolean



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