From deed93a6508c14f4a863afdf1f941e0c49b17ceb Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Sun, 16 Apr 2017 17:32:07 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20"grosse=20d=C3=A9chire"=20around=20Linpho?= =?UTF-8?q?neTunnel=20objectization.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coreapi/linphone_tunnel.cc | 2 +- coreapi/linphonecore.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/linphone_tunnel.cc b/coreapi/linphone_tunnel.cc index 845cf9fcf..c82876105 100644 --- a/coreapi/linphone_tunnel.cc +++ b/coreapi/linphone_tunnel.cc @@ -34,7 +34,7 @@ LinphoneTunnel* linphone_core_get_tunnel(const LinphoneCore *lc){ } struct _LinphoneTunnel { - ::belle_sip_object_t *base; + ::belle_sip_object_t base; belledonnecomm::TunnelManager *manager; bctbx_list_t *config_list; }; diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 65c6250b9..be59b169a 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5582,7 +5582,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_ref(lc->tunnel); + linphone_tunnel_unref(lc->tunnel); lc->tunnel=NULL; ms_message("Tunnel destroyed."); }