mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 02:39:22 +00:00
destroy http provider before sal is destroyed, otherwise the belle_sip_stack is already destroyed when destroying the provider.
This commit is contained in:
parent
3013fd8ae2
commit
fe3a59ed69
1 changed files with 8 additions and 8 deletions
|
|
@ -5627,14 +5627,6 @@ void net_config_uninit(LinphoneCore *lc)
|
|||
{
|
||||
net_config_t *config=&lc->net_conf;
|
||||
|
||||
if (lc->http_provider) {
|
||||
belle_sip_object_unref(lc->http_provider);
|
||||
lc->http_provider=NULL;
|
||||
}
|
||||
if (lc->http_verify_policy){
|
||||
belle_sip_object_unref(lc->http_verify_policy);
|
||||
lc->http_verify_policy=NULL;
|
||||
}
|
||||
if (config->stun_server!=NULL){
|
||||
ms_free(config->stun_server);
|
||||
}
|
||||
|
|
@ -5709,6 +5701,14 @@ void sip_config_uninit(LinphoneCore *lc)
|
|||
|
||||
sal_reset_transports(lc->sal);
|
||||
sal_unlisten_ports(lc->sal); /*to make sure no new messages are received*/
|
||||
if (lc->http_provider) {
|
||||
belle_sip_object_unref(lc->http_provider);
|
||||
lc->http_provider=NULL;
|
||||
}
|
||||
if (lc->http_verify_policy){
|
||||
belle_sip_object_unref(lc->http_verify_policy);
|
||||
lc->http_verify_policy=NULL;
|
||||
}
|
||||
sal_iterate(lc->sal); /*make sure event are purged*/
|
||||
sal_uninit(lc->sal);
|
||||
lc->sal=NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue