cec : stop the processor thread and delete the CSerialPort instance on exit. zzzz
[deb_libcec.git] / src / lib / AdapterCommunication.cpp
index 3a403068811a0dfee97d077bbf62f70f057f735a..be9485824be8e2f7dd30f6c29047428a8f370f2d 100644 (file)
@@ -52,7 +52,9 @@ CAdapterCommunication::CAdapterCommunication(CLibCEC *controller) :
 
 CAdapterCommunication::~CAdapterCommunication(void)
 {
+  StopThread();
   m_port->Close();
+  delete m_port;
   m_port = NULL;
 }