summaryrefslogtreecommitdiff
path: root/src/threadengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadengine.cpp')
-rw-r--r--src/threadengine.cpp4
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