diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-24 12:45:21 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-24 12:45:21 +0200 |
commit | 36b9b4b39900d1b2e3b182e1b50370b0c9dcb9ae (patch) | |
tree | 0d6f84597c4e103647de04eea4eb0c21ce6ef9c2 /src/threadengine.cpp | |
parent | aa7df4b8234d4b601ad0310605181fdabc8cfcaa (diff) |
Change allocation of ThreadData to be physically part of the object containing it
Diffstat (limited to 'src/threadengine.cpp')
-rw-r--r-- | src/threadengine.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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 |