diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2006-01-05 21:01:58 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2006-01-05 21:01:58 +0800 |
commit | 18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2 (patch) | |
tree | 70642784ae4bc59a7ce132c598968c55b72ac6be /plugins/exchange-operations/exchange-config-listener.c | |
parent | 6f8f1c6d8d3a6f46e461352a93b6676d2871a1b4 (diff) | |
download | gsoc2013-evolution-18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2.tar gsoc2013-evolution-18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2.tar.gz gsoc2013-evolution-18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2.tar.bz2 gsoc2013-evolution-18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2.tar.lz gsoc2013-evolution-18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2.tar.xz gsoc2013-evolution-18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2.tar.zst gsoc2013-evolution-18c2ab5bc837295bcffae9bcc6bfcd05e6c9beb2.zip |
Setting the username, authtype, auth-domain and auth properties on the esource
created, so that corresponding folder will be authenticated and loaded after
the folder creation. Also fixed memory leak in case of no any changes
condition. Not freeing the non allocated string offline_mode.
svn path=/trunk/; revision=31064
Diffstat (limited to 'plugins/exchange-operations/exchange-config-listener.c')
-rw-r--r-- | plugins/exchange-operations/exchange-config-listener.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/exchange-operations/exchange-config-listener.c b/plugins/exchange-operations/exchange-config-listener.c index beb19a110f..d83458ef24 100644 --- a/plugins/exchange-operations/exchange-config-listener.c +++ b/plugins/exchange-operations/exchange-config-listener.c @@ -1143,7 +1143,7 @@ remove_selected_non_offline_esources (ExchangeAccount *account, const char *gcon const char *source_uid; GConfClient *client; ESourceList *source_list = NULL; - char *offline_mode=NULL; + const char *offline_mode=NULL; char *selected_gconf_key; @@ -1179,8 +1179,7 @@ remove_selected_non_offline_esources (ExchangeAccount *account, const char *gcon selected_gconf_key, GCONF_VALUE_STRING, NULL); if (ids) { - offline_mode = (gchar*) e_source_get_property (source, - "offline_sync"); + offline_mode = e_source_get_property (source, "offline_sync"); if (!offline_mode || (offline_mode && strcmp (offline_mode, "1"))) { while ((node_to_be_deleted = @@ -1197,8 +1196,6 @@ remove_selected_non_offline_esources (ExchangeAccount *account, const char *gcon } g_slist_foreach (ids, (GFunc) g_free, NULL); g_slist_free (ids); - g_free (offline_mode); - } } found_group = TRUE; |