diff options
author | archshift <admin@archshift.com> | 2014-06-19 10:49:56 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-06-19 10:49:56 +0200 |
commit | e8143de01bff31f9e153949d7ab5b0df82629541 (patch) | |
tree | d6a37e6433f973765c8ca63e408dbbd420b08d70 /src/OSSupport/Thread.cpp | |
parent | Merge pull request #1096 from mc-server/redstonerefactor (diff) | |
download | cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.gz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.bz2 cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.lz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.xz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.zst cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/Thread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OSSupport/Thread.cpp b/src/OSSupport/Thread.cpp index 7a10ef8d2..535784613 100644 --- a/src/OSSupport/Thread.cpp +++ b/src/OSSupport/Thread.cpp @@ -66,11 +66,13 @@ cThread::cThread( ThreadFunc a_ThreadFunction, void* a_Param, const char* a_Thre cThread::~cThread() { delete m_Event; + m_Event = NULL; if( m_StopEvent ) { m_StopEvent->Wait(); delete m_StopEvent; + m_StopEvent = NULL; } } |