- destroy the jit runtime when all script functions are destroyed
This commit is contained in:
parent
9d68d43ce7
commit
e557e8fac0
3 changed files with 32 additions and 3 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include "templates.h"
|
||||
#include "vmintern.h"
|
||||
#include "types.h"
|
||||
#include "jit.h"
|
||||
|
||||
cycle_t VMCycles[10];
|
||||
int VMCalls[10];
|
||||
|
|
@ -77,6 +78,12 @@ VMScriptFunction::VMScriptFunction(FName name)
|
|||
|
||||
VMScriptFunction::~VMScriptFunction()
|
||||
{
|
||||
if (JitFunc)
|
||||
{
|
||||
JitCleanUp(this);
|
||||
JitFunc = nullptr;
|
||||
}
|
||||
|
||||
if (Code != NULL)
|
||||
{
|
||||
if (KonstS != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue