cec: fixed - the destructor of CSerialSocket didn't call Close()
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 22 Mar 2012 11:15:53 +0000 (12:15 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 22 Mar 2012 11:15:53 +0000 (12:15 +0100)
src/lib/platform/sockets/serialport.h

index c74cc05d38ec967dfef8923af15ff466158beb09..bdd05b96f3edc0ebf1ab9946a4f69f200c9cd3e7 100644 (file)
@@ -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);