Properly cleanup the jit on reset.

This commit is contained in:
Unknown W. Brackets 2012-12-23 23:33:10 -08:00
parent 2736012719
commit 3c08a87404

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));