mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
prevent use after free
This commit is contained in:
@ -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];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user