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 9f6dc60d22..8d1ab84a3d 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -31,6 +31,7 @@
#include "common/updates.h"
#include "common/dialogs.h"
#include "common/textconsole.h"
+#include "common/text-to-speech.h"
#include "backends/audiocd/default/default-audiocd.h"
#include "backends/fs/fs-factory.h"
@@ -49,6 +50,9 @@ OSystem::OSystem() {
#if defined(USE_UPDATES)
_updateManager = nullptr;
#endif
+#if defined(USE_TTS)
+ _textToSpeechManager = nullptr;
+#endif
#if defined(USE_SYSDIALOGS)
_dialogManager = nullptr;
#endif
@@ -76,6 +80,11 @@ OSystem::~OSystem() {
_updateManager = nullptr;
#endif
+#if defined(USE_TTS)
+ delete _textToSpeechManager;
+ _textToSpeechManager = 0;
+#endif
+
#if defined(USE_SYSDIALOGS)
delete _dialogManager;
_dialogManager = nullptr;