diff --git a/sourcepawn/jit/BaseRuntime.cpp b/sourcepawn/jit/BaseRuntime.cpp index be6d9738..c3956eff 100644 --- a/sourcepawn/jit/BaseRuntime.cpp +++ b/sourcepawn/jit/BaseRuntime.cpp @@ -37,7 +37,10 @@ BaseRuntime::~BaseRuntime() free(m_FuncCache); delete m_pCtx; - delete m_pCo; + if (m_pCo != NULL) + { + m_pCo->Abort(); + } free(m_pPlugin->base); delete [] m_pPlugin->memory;