cec : stop the processor thread and delete the CSerialPort instance on exit. zzzz
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 4 Oct 2011 18:51:39 +0000 (20:51 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 4 Oct 2011 18:53:25 +0000 (20:53 +0200)
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;
 }