Fixing some shutdown code.

This commit is contained in:
Ben Vanik
2014-01-02 18:58:44 -08:00
parent 125e7278c6
commit 7969349126
11 changed files with 58 additions and 35 deletions

View File

@@ -56,8 +56,13 @@ Emulator::~Emulator() {
delete file_system_;
delete input_system_;
// Give the systems time to shutdown before we delete them.
graphics_system_->Shutdown();
audio_system_->Shutdown();
delete graphics_system_;
delete audio_system_;
delete processor_;
delete debug_server_;