prevent use after free
This commit is contained in:
parent
21dbca9543
commit
1085cc14a4
|
@ -210,13 +210,13 @@ bool Init()
|
||||||
|
|
||||||
void DeInit()
|
void DeInit()
|
||||||
{
|
{
|
||||||
delete ARM9;
|
|
||||||
delete ARM7;
|
|
||||||
|
|
||||||
#ifdef JIT_ENABLED
|
#ifdef JIT_ENABLED
|
||||||
ARMJIT::DeInit();
|
ARMJIT::DeInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
delete ARM9;
|
||||||
|
delete ARM7;
|
||||||
|
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
delete DMAs[i];
|
delete DMAs[i];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue