cec: fixed crash when replacing handlers - std::map::clear() already calls the destru...
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 18 Feb 2012 11:13:46 +0000 (12:13 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sat, 18 Feb 2012 11:13:46 +0000 (12:13 +0100)
src/lib/implementations/CECCommandHandler.h

index 2943ba39b3a17059491bc098a3414a3be18c8182..4cfb81fbd1510d932777b4e9a10c17554ce3aa3a 100644 (file)
@@ -74,11 +74,6 @@ namespace CEC
     ~CWaitForResponse(void)
     {
       PLATFORM::CLockObject lock(m_mutex);
-      for (std::map<cec_opcode, CResponse*>::iterator it = m_waitingFor.begin(); it != m_waitingFor.end(); it++)
-      {
-        it->second->Broadcast();
-        delete it->second;
-      }
       m_waitingFor.clear();
     }