From 36b9b4b39900d1b2e3b182e1b50370b0c9dcb9ae Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 24 Jun 2014 12:45:21 +0200 Subject: Change allocation of ThreadData to be physically part of the object containing it --- src/threadengine.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/threadengine.cpp') diff --git a/src/threadengine.cpp b/src/threadengine.cpp index 4269c1aef..82aa78a36 100644 --- a/src/threadengine.cpp +++ b/src/threadengine.cpp @@ -26,9 +26,7 @@ void Thread::SetExitFlag() void Thread::join() { - state->FreeThread(this); - delete state; - state = 0; + state.FreeThread(this); } /** If this thread has a Creator set, call it to -- cgit v1.3.1-10-gc9f91