From: Lars Op den Kamp Date: Thu, 2 Aug 2012 17:22:20 +0000 (+0200) Subject: cec: fixed - null ptr deref after 'cec-client -l' X-Git-Tag: upstream/2.2.0~1^2~19^2^2~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b2031ca8d27e6e21d90849dcb45b90fac7c95abb;p=deb_libcec.git cec: fixed - null ptr deref after 'cec-client -l' --- diff --git a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp index b524dd8..70e45ac 100644 --- a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp @@ -222,7 +222,8 @@ void CUSBCECAdapterCommunication::Close(void) m_adapterMessageQueue->Clear(); /* stop and delete the write thread */ - m_eepromWriteThread->Stop(); + if (m_eepromWriteThread) + m_eepromWriteThread->Stop(); DELETE_AND_NULL(m_eepromWriteThread); /* stop and delete the ping thread */