fix linphone_core_clear_proxy_config

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@800 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2010-01-04 11:20:24 +00:00
parent aecda5f2c1
commit a25dde8752

View file

@ -563,10 +563,11 @@ void linphone_core_remove_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *cf
* @ingroup proxy
**/
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){
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.