summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 79e2a767..69158784 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -307,6 +307,9 @@ void exit_engine()
// Shutdown libxml
xmlCleanupParser();
+
+ // Shutdown sound
+ sound.close();
ResourceManager::deleteInstance();
delete logger;
@@ -501,6 +504,7 @@ int main(int argc, char *argv[])
}
}
+ fclose(nullFile);
logger->log("State: EXIT");
exit_engine();
PHYSFS_deinit();