aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread.cpp')
-rw-r--r--src/thread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/thread.cpp b/src/thread.cpp
index dd777a498..d2008e2df 100644
--- a/src/thread.cpp
+++ b/src/thread.cpp
@@ -57,7 +57,6 @@ bool Thread::Stop()
stopping = true;
thread->join();
- delete thread;
- thread = nullptr;
+ stdalgo::delete_zero(thread);
return true;
}