cec: fixed crash on exit after the last commit.
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 26 Oct 2011 23:02:38 +0000 (01:02 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 26 Oct 2011 23:02:38 +0000 (01:02 +0200)
src/lib/CECProcessor.cpp

index eae4c3cfa7b3b2e92eeae6d3623feaed19c43b39..e9caaf0835ba0cec3a4e83e72fb410541f825f35 100644 (file)
@@ -58,7 +58,8 @@ CCECProcessor::~CCECProcessor(void)
   StopThread();
   m_communication = NULL;
   m_controller = NULL;
-  delete[] m_busDevices;
+  for (unsigned int iPtr = 0; iPtr < 16; iPtr++)
+    delete m_busDevices[iPtr];
 }
 
 bool CCECProcessor::Start(void)