From e48bba5b4d719fe78e6389afc47ee674e47d6c6e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 26 Oct 2008 23:50:54 -0500 Subject: [PATCH] Fixed leaking relocation table memory in JIT. --- sourcepawn/jit/BaseRuntime.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sourcepawn/jit/BaseRuntime.cpp b/sourcepawn/jit/BaseRuntime.cpp index be6d9738d..c3956eff7 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;