mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Merge pull request #255 from unknownbrackets/master
Fix a crash when switching between jit and interpreter
This commit is contained in:
commit
b4904121f9
1 file changed
+4
@@ -53,7 +53,11 @@ MIPSState::~MIPSState()
|
||||
void MIPSState::Reset()
|
||||
{
|
||||
if (MIPSComp::jit)
|
||||
{
|
||||
delete MIPSComp::jit;
|
||||
MIPSComp::jit = 0;
|
||||
}
|
||||
|
||||
if (PSP_CoreParameter().cpuCore == CPU_JIT)
|
||||
MIPSComp::jit = new MIPSComp::Jit(this);
|
||||
|
||||
|
||||
Reference in new issue
Block a user