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."); }