From acab555601ba90c42b82b25f76716f6fa88c4142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Thu, 25 Sep 2014 14:37:23 +0200 Subject: [PATCH] Fix invalid read/write --- coreapi/TunnelManager.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/TunnelManager.cc b/coreapi/TunnelManager.cc index 0a7545623..a0158a88a 100644 --- a/coreapi/TunnelManager.cc +++ b/coreapi/TunnelManager.cc @@ -174,6 +174,9 @@ TunnelManager::TunnelManager(LinphoneCore* lc) : } TunnelManager::~TunnelManager(){ + for(UdpMirrorClientList::iterator udpMirror = mUdpMirrorClients.begin(); udpMirror != mUdpMirrorClients.end(); udpMirror++) { + udpMirror->stop(); + } stopClient(); linphone_core_remove_listener(mCore, mVTable); linphone_vtable_destroy(mVTable);