Merge branch 'master' of github.com:Pulse-Eight/libcec
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 4685132619bba76bc243da41281dd9ab1c88b4fb..b305a4a06f2d51db77231840c40de72ba8c48d3b 100644 (file)
@@ -132,7 +132,10 @@ CCECProcessor::~CCECProcessor(void)
   Close();
 
   for (unsigned int iPtr = 0; iPtr < 16; iPtr++)
+  {
     delete m_busDevices[iPtr];
+    m_busDevices[iPtr] = NULL;
+  }
 }
 
 void CCECProcessor::Close(void)
@@ -1692,5 +1695,6 @@ bool CCECProcessor::GetDeviceInformation(const char *strPort, libcec_configurati
   config->iPhysicalAddress = m_communication->GetPhysicalAddress();
 
   delete m_communication;
+  m_communication = NULL;
   return true;
 }