From 310f6504a429607b6603b9b6e92898a1d962f78c Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Mon, 20 Mar 2017 14:46:58 +0100 Subject: [PATCH] fix tunnel compilation --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 9b208ba8a..ca5fa9d64 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5481,7 +5481,7 @@ void sip_config_uninit(LinphoneCore *lc) /*now that we are unregisted, there is no more channel using tunnel socket we no longer need the tunnel.*/ #ifdef TUNNEL_ENABLED if (lc->tunnel) { - linphone_tunnel_destroy(lc->tunnel); + linphone_tunnel_ref(lc->tunnel); lc->tunnel=NULL; ms_message("Tunnel destroyed."); }