aboutsummaryrefslogtreecommitdiff
path: root/backends/modular-backend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/modular-backend.cpp')
-rw-r--r--backends/modular-backend.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/modular-backend.cpp b/backends/modular-backend.cpp
index 4159a83ab0..095488365e 100644
--- a/backends/modular-backend.cpp
+++ b/backends/modular-backend.cpp
@@ -40,13 +40,22 @@ ModularBackend::ModularBackend()
}
ModularBackend::~ModularBackend() {
+ delete _fsFactory;
+ _fsFactory = 0;
delete _graphicsManager;
+ _graphicsManager = 0;
delete _eventManager;
+ _eventManager = 0;
delete _mixer;
+ _mixer = 0;
delete _audiocdManager;
+ _audiocdManager = 0;
delete _savefileManager;
+ _savefileManager = 0;
delete _timerManager;
+ _timerManager = 0;
delete _mutexManager;
+ _mutexManager = 0;
}
bool ModularBackend::hasFeature(Feature f) {