[evolution-ews] Do not use deprecated g_atexit.



commit 16e94af0795b6d7a749651b86f01225c4822dd62
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Nov 8 15:56:48 2011 +0530

    Do not use deprecated g_atexit.

 .../exchange-ews-account-setup.c                   |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-ews-account-setup.c b/src/account-setup-eplugin/exchange-ews-account-setup.c
index 06db88a..ff553dd 100644
--- a/src/account-setup-eplugin/exchange-ews-account-setup.c
+++ b/src/account-setup-eplugin/exchange-ews-account-setup.c
@@ -74,10 +74,11 @@ free_ews_listener ( void )
 gint
 e_plugin_lib_enable (EPlugin *ep, gint enable)
 {
-	if (!config_listener) {
+	if (!config_listener)
 		config_listener = exchange_ews_account_listener_new ();
-		g_atexit ( free_ews_listener );
-	}
+
+	if (!enable)
+		free_ews_listener ();
 
 	return 0;
 }



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