From: Lars Op den Kamp Date: Wed, 26 Oct 2011 23:02:38 +0000 (+0200) Subject: cec: fixed crash on exit after the last commit. X-Git-Tag: upstream/2.2.0~1^2~213 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d1998c7bd8bb71fac318d555409d8f2c4da255fa;p=deb_libcec.git cec: fixed crash on exit after the last commit. --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index eae4c3c..e9caaf0 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -58,7 +58,8 @@ CCECProcessor::~CCECProcessor(void) StopThread(); m_communication = NULL; m_controller = NULL; - delete[] m_busDevices; + for (unsigned int iPtr = 0; iPtr < 16; iPtr++) + delete m_busDevices[iPtr]; } bool CCECProcessor::Start(void)