From: Lars Op den Kamp Date: Thu, 22 Mar 2012 11:15:53 +0000 (+0100) Subject: cec: fixed - the destructor of CSerialSocket didn't call Close() X-Git-Tag: upstream/2.2.0~1^2~31^2~58 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=48c4128d465449c624d4d2e99852eba568367acb;p=deb_libcec.git cec: fixed - the destructor of CSerialSocket didn't call Close() --- diff --git a/src/lib/platform/sockets/serialport.h b/src/lib/platform/sockets/serialport.h index c74cc05..bdd05b9 100644 --- a/src/lib/platform/sockets/serialport.h +++ b/src/lib/platform/sockets/serialport.h @@ -77,7 +77,7 @@ namespace PLATFORM m_iStopbits(iStopbits), m_iParity(iParity) {} - virtual ~CSerialSocket(void) {} + virtual ~CSerialSocket(void) { Close(); } virtual bool Open(uint64_t iTimeoutMs = 0); virtual void Close(void);