diff options
author | Max Horn | 2003-07-04 13:17:56 +0000 |
---|---|---|
committer | Max Horn | 2003-07-04 13:17:56 +0000 |
commit | 0ed8e1ef36ae8d30edab9d4d74481ffac01f39b4 (patch) | |
tree | d653f6e006d320603ee802df8c6bb5ebf5fbfa09 /common/main.cpp | |
parent | 85c467c6a0185cc8aa6eea2fa9182ef9fd92b335 (diff) | |
download | scummvm-rg350-0ed8e1ef36ae8d30edab9d4d74481ffac01f39b4.tar.gz scummvm-rg350-0ed8e1ef36ae8d30edab9d4d74481ffac01f39b4.tar.bz2 scummvm-rg350-0ed8e1ef36ae8d30edab9d4d74481ffac01f39b4.zip |
prevent (or rather: make much less likely) some sound output related race conditions
svn-id: r8740
Diffstat (limited to 'common/main.cpp')
-rw-r--r-- | common/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/main.cpp b/common/main.cpp index 658895c27d..761644fc15 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -229,6 +229,9 @@ int main(int argc, char *argv[]) { // Run the game engine engine->go(); + // Stop all sound processing now (this prevents some race conditions later on) + system->clear_sound_proc(); + // Free up memory delete engine; delete g_gui; |