From: Lars Op den Kamp Date: Fri, 20 Apr 2012 14:01:18 +0000 (+0200) Subject: cec: fixed leak in CCECAdapterMessageQueue::Write X-Git-Tag: upstream/2.2.0~1^2~29^2^2~72 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4c2e665c0dcf87d0b45c07eb592a1aebf4ccf1f7;p=deb_libcec.git cec: fixed leak in CCECAdapterMessageQueue::Write --- diff --git a/src/lib/adapter/USBCECAdapterMessageQueue.cpp b/src/lib/adapter/USBCECAdapterMessageQueue.cpp index 8533af6..7f98894 100644 --- a/src/lib/adapter/USBCECAdapterMessageQueue.cpp +++ b/src/lib/adapter/USBCECAdapterMessageQueue.cpp @@ -313,6 +313,7 @@ bool CCECAdapterMessageQueue::Write(CCECAdapterMessage *msg) CLockObject lock(m_mutex); m_messages.erase(iEntryId); + delete entry; } return bReturn;