diff --git a/src/thread/thread_d.hpp b/src/thread/thread_d.hpp index 5353606..0c11986 100644 --- a/src/thread/thread_d.hpp +++ b/src/thread/thread_d.hpp @@ -52,6 +52,7 @@ namespace fc { ~thread_d() { delete current; + current = nullptr; fc::context* temp; for (fc::context* ready_context : ready_heap) delete ready_context;