prevent use after free

This commit is contained in:
RSDuck 2020-11-16 17:03:24 +01:00
parent 21dbca9543
commit 1085cc14a4
1 changed files with 3 additions and 3 deletions

View File

@ -210,13 +210,13 @@ bool Init()
void DeInit()
{
delete ARM9;
delete ARM7;
#ifdef JIT_ENABLED
ARMJIT::DeInit();
#endif
delete ARM9;
delete ARM7;
for (int i = 0; i < 8; i++)
delete DMAs[i];