diff --git a/src/runtime/ThreadLocal.cpp b/src/runtime/ThreadLocal.cpp index 87b98fada..7a2ddf919 100644 --- a/src/runtime/ThreadLocal.cpp +++ b/src/runtime/ThreadLocal.cpp @@ -246,6 +246,7 @@ void ThreadLocal::finalize() // g_gcEventListenerSet delete g_gcEventListenerSet; g_gcEventListenerSet = nullptr; + GC_set_on_collection_event(nullptr); // g_astAllocator delete g_astAllocator;