aboutsummaryrefslogtreecommitdiff
path: root/common/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.cpp')
-rw-r--r--common/system.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/system.cpp b/common/system.cpp
index c8023c8ec2..93cf98c08e 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -29,6 +29,7 @@
#include "common/str.h"
#include "common/taskbar.h"
#include "common/updates.h"
+#include "common/dialogs.h"
#include "common/textconsole.h"
#include "backends/audiocd/default/default-audiocd.h"
@@ -48,6 +49,9 @@ OSystem::OSystem() {
#if defined(USE_UPDATES)
_updateManager = nullptr;
#endif
+#if defined(USE_SYSDIALOGS)
+ _dialogManager = nullptr;
+#endif
_fsFactory = nullptr;
_backendInitialized = false;
}
@@ -72,6 +76,11 @@ OSystem::~OSystem() {
_updateManager = nullptr;
#endif
+#if defined(USE_SYSDIALOGS)
+ delete _dialogManager;
+ _dialogManager = nullptr;
+#endif
+
delete _savefileManager;
_savefileManager = nullptr;