From c7e9549276e43503fce28a80a0576e586b9975b4 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 4 Oct 2011 20:51:39 +0200 Subject: [PATCH] cec : stop the processor thread and delete the CSerialPort instance on exit. zzzz --- src/lib/AdapterCommunication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index 3a40306..be94858 100644 --- a/src/lib/AdapterCommunication.cpp +++ b/src/lib/AdapterCommunication.cpp @@ -52,7 +52,9 @@ CAdapterCommunication::CAdapterCommunication(CLibCEC *controller) : CAdapterCommunication::~CAdapterCommunication(void) { + StopThread(); m_port->Close(); + delete m_port; m_port = NULL; } -- 2.34.1