summaryrefslogtreecommitdiff
path: root/src/threadengine_win32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadengine_win32.cpp')
-rw-r--r--src/threadengine_win32.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/threadengine_win32.cpp b/src/threadengine_win32.cpp
index 602d8b809..d3c0303f5 100644
--- a/src/threadengine_win32.cpp
+++ b/src/threadengine_win32.cpp
@@ -6,6 +6,7 @@ void Thread::Join()
{
SetExitState();
WaitForSingleObject(Handle, INFINITE);
+ delete this;
}
/** Entry point for the thread