mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
make sure publish listeners do no try to access proxies during deletions
This commit is contained in:
parent
3a850c1a03
commit
82f2275549
1 changed files with 3 additions and 1 deletions
|
|
@ -5819,7 +5819,9 @@ void sip_config_uninit(LinphoneCore *lc)
|
|||
}
|
||||
if (i>=20) ms_warning("Cannot complete unregistration, giving up");
|
||||
}
|
||||
config->proxies=bctbx_list_free_with_data(config->proxies,(void (*)(void*)) _linphone_proxy_config_release);
|
||||
elem = config->proxies;
|
||||
config->proxies=NULL; /*to make sure proxies cannot be refferenced during deletion*/
|
||||
bctbx_list_free_with_data(elem,(void (*)(void*)) _linphone_proxy_config_release);
|
||||
|
||||
config->deleted_proxies=bctbx_list_free_with_data(config->deleted_proxies,(void (*)(void*)) _linphone_proxy_config_release);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue