aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 2f1759f..1e7321d 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -226,10 +226,16 @@ void DeInit()
#endif
delete ARM9;
+ ARM9 = nullptr;
+
delete ARM7;
+ ARM7 = nullptr;
for (int i = 0; i < 8; i++)
+ {
delete DMAs[i];
+ DMAs[i] = nullptr;
+ }
NDSCart::DeInit();
GBACart::DeInit();