From: Lars Op den Kamp Date: Mon, 9 Dec 2013 15:38:53 +0000 (+0100) Subject: fixed leak on exit in CWaitForResponse::Clear() X-Git-Tag: upstream/2.2.0~1^2~3^2~28 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ae30b10bf566d0ba436e1be42126adf0cb171309;p=deb_libcec.git fixed leak on exit in CWaitForResponse::Clear() --- 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(); }