cec: fixed leak in CCECAdapterMessageQueue::Write
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 20 Apr 2012 14:01:18 +0000 (16:01 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 20 Apr 2012 15:07:35 +0000 (17:07 +0200)
src/lib/adapter/USBCECAdapterMessageQueue.cpp

index 8533af6f6a1c13a45db81c6570bd3710c42bda06..7f988949e0d93a5b9f10a60c3832a0d64e4ec010 100644 (file)
@@ -313,6 +313,7 @@ bool CCECAdapterMessageQueue::Write(CCECAdapterMessage *msg)
 
     CLockObject lock(m_mutex);
     m_messages.erase(iEntryId);
+    delete entry;
   }
 
   return bReturn;