aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wii/osystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/wii/osystem.cpp')
-rw-r--r--backends/platform/wii/osystem.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/wii/osystem.cpp b/backends/platform/wii/osystem.cpp
index c2751f6ef4..54427bd20c 100644
--- a/backends/platform/wii/osystem.cpp
+++ b/backends/platform/wii/osystem.cpp
@@ -145,7 +145,16 @@ void OSystem_Wii::initBackend() {
}
void OSystem_Wii::quit() {
+ /* Delete _timerManager before deinitializing events as it's tied */
+ delete _timerManager;
+ _timerManager = nullptr;
+
deinitEvents();
+
+ /* Delete _eventManager before destroying FS to avoid problems when releasing virtual keyboard data */
+ delete _eventManager;
+ _eventManager = nullptr;
+
deinitSfx();
deinitGfx();