aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-config-listener.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/exchange-operations/exchange-config-listener.c')
-rw-r--r--plugins/exchange-operations/exchange-config-listener.c7
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;