Commit deed93a6 authored by Simon Morlat's avatar Simon Morlat

Fix "grosse déchire" around LinphoneTunnel objectization.

parent 313b60c0
......@@ -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;
};
......
......@@ -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.");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment