From: Lars Op den Kamp Date: Fri, 20 Apr 2012 14:06:22 +0000 (+0200) Subject: lib/platform: fixed memleak X-Git-Tag: upstream/2.2.0~1^2~29^2^2~71 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=4f3d2262d4685e8b51289a1fbdbf852bbdc89667 lib/platform: fixed memleak --- diff --git a/src/lib/platform/threads/threads.h b/src/lib/platform/threads/threads.h index 97774b3..1d14f8c 100644 --- a/src/lib/platform/threads/threads.h +++ b/src/lib/platform/threads/threads.h @@ -46,6 +46,8 @@ namespace PLATFORM virtual ~CThread(void) { StopThread(0); + void *retVal; + ThreadsWait(m_thread, &retVal); } static void *ThreadHandler(CThread *thread)