From 918502e29e608a2ddf64c8f870274b4cc9bc335d Mon Sep 17 00:00:00 2001 From: crypto-ape <43807588+crypto-ape@users.noreply.github.com> Date: Tue, 2 Apr 2019 12:37:18 +0200 Subject: [PATCH] invalidate pointer to deleted object --- src/thread/thread_d.hpp | 1 + 1 file changed, 1 insertion(+) 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;