diff options
Diffstat (limited to 'plugins/groupwise-features/proxy.c')
-rw-r--r-- | plugins/groupwise-features/proxy.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index c539974564..fb0e786239 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -642,7 +642,6 @@ org_gnome_proxy (EPlugin *epl, EConfigHookItemFactoryData *data) proxyDialog *prd; proxyDialogPrivate *priv; CamelOfflineStore *store; - CamelException ex; gint pag_num; target_account = (EMConfigTargetAccount *)data->config->target; @@ -650,11 +649,11 @@ org_gnome_proxy (EPlugin *epl, EConfigHookItemFactoryData *data) /* We are using some g_object_set on this. We shuold also avoid double-free later. So reffing */ g_object_ref (account); - camel_exception_init (&ex); - if (!(store = (CamelOfflineStore *) camel_session_get_service (session, e_account_get_string(account, E_ACCOUNT_SOURCE_URL), CAMEL_PROVIDER_STORE, &ex))) { - camel_exception_clear (&ex); + store = (CamelOfflineStore *) camel_session_get_service ( + session, e_account_get_string (account, E_ACCOUNT_SOURCE_URL), + CAMEL_PROVIDER_STORE, NULL); + if (store == NULL) return NULL; - } if (g_strrstr (e_account_get_string(account, E_ACCOUNT_SOURCE_URL), "groupwise://")) { @@ -717,7 +716,7 @@ org_gnome_proxy (EPlugin *epl, EConfigHookItemFactoryData *data) } g_object_unref (store); - camel_exception_clear (&ex); + return NULL; } |