Properly cleanup the jit on reset.

This commit is contained in:
Unknown W. Brackets committed 2012-12-23 23:33:10 -08:00
1 parent 2736012719
commit 3c08a87404
1 file changed
+3 -1
+3 -1
View File
@@ -52,7 +52,9 @@ MIPSState::~MIPSState()
void MIPSState::Reset()
{
if (!MIPSComp::jit && PSP_CoreParameter().cpuCore == CPU_JIT)
if (MIPSComp::jit)
delete MIPSComp::jit;
if (PSP_CoreParameter().cpuCore == CPU_JIT)
MIPSComp::jit = new MIPSComp::Jit(this);
memset(r, 0, sizeof(r));