Commit a25dde87 authored by smorlat's avatar smorlat
Browse files

fix linphone_core_clear_proxy_config

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@800 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent aecda5f2
No related merge requests found
Showing with 4 additions and 3 deletions
...@@ -563,10 +563,11 @@ void linphone_core_remove_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *cf ...@@ -563,10 +563,11 @@ void linphone_core_remove_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *cf
* @ingroup proxy * @ingroup proxy
**/ **/
void linphone_core_clear_proxy_config(LinphoneCore *lc){ void linphone_core_clear_proxy_config(LinphoneCore *lc){
const MSList* list=linphone_core_get_proxy_config_list((const LinphoneCore*)lc); MSList* list=ms_list_copy(linphone_core_get_proxy_config_list((const LinphoneCore*)lc));
for(;list!=NULL;list=list->next){ for(;list!=NULL;list=list->next){
linphone_core_remove_proxy_config(lc,(LinphoneProxyConfig *)list->data); linphone_core_remove_proxy_config(lc,(LinphoneProxyConfig *)list->data);
} }
ms_list_free(list);
} }
/** /**
* Sets the default proxy. * Sets the default proxy.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment