From ae30b10bf566d0ba436e1be42126adf0cb171309 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 9 Dec 2013 16:38:53 +0100 Subject: [PATCH] fixed leak on exit in CWaitForResponse::Clear() --- src/lib/devices/CECBusDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index c9699d8..eac78b0 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -94,7 +94,10 @@ void CWaitForResponse::Clear() { PLATFORM::CLockObject lock(m_mutex); for (std::map::iterator it = m_waitingFor.begin(); it != m_waitingFor.end(); it++) + { it->second->Broadcast(); + delete it->second; + } m_waitingFor.clear(); } -- 2.34.1