From fe3a59ed6924c3ddde17053a25e86b2eb161782e Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 27 Mar 2014 10:32:57 +0100 Subject: [PATCH] destroy http provider before sal is destroyed, otherwise the belle_sip_stack is already destroyed when destroying the provider. --- coreapi/linphonecore.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index e5eaea9ca..52ef011c0 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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;