From: Lars Op den Kamp Date: Sat, 18 Feb 2012 11:13:46 +0000 (+0100) Subject: cec: fixed crash when replacing handlers - std::map::clear() already calls the destru... X-Git-Tag: upstream/2.2.0~1^2~35^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cec99a5b6baac7c4c6cf8699abd87ad068db6bd1;p=deb_libcec.git cec: fixed crash when replacing handlers - std::map::clear() already calls the destructors of each item --- diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index 2943ba3..4cfb81f 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -74,11 +74,6 @@ namespace CEC ~CWaitForResponse(void) { 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(); }