From: Lars Op den Kamp Date: Tue, 4 Oct 2011 18:51:39 +0000 (+0200) Subject: cec : stop the processor thread and delete the CSerialPort instance on exit. zzzz X-Git-Tag: upstream/2.2.0~1^2~293 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c7e9549276e43503fce28a80a0576e586b9975b4;p=deb_libcec.git cec : stop the processor thread and delete the CSerialPort instance on exit. zzzz --- 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; }