cec: fixed crash on exit after the last commit.
[deb_libcec.git] / 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)