mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Properly cleanup the jit on reset.
This commit is contained in:
parent
2736012719
commit
3c08a87404
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue