lib/platform: fixed memleak
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 20 Apr 2012 14:06:22 +0000 (16:06 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 20 Apr 2012 15:07:35 +0000 (17:07 +0200)
src/lib/platform/threads/threads.h

index 97774b3b1ee28289952bf8af4321d891398925e8..1d14f8cea32560befc14f24267df7e07a55bfbb5 100644 (file)
@@ -46,6 +46,8 @@ namespace PLATFORM
     virtual ~CThread(void)
     {
       StopThread(0);
+      void *retVal;
+      ThreadsWait(m_thread, &retVal);
     }
 
     static void *ThreadHandler(CThread *thread)