diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-24 17:16:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-24 20:02:37 +0300 |
commit | 22e4c80cc35e552ef39639a874f3c54f11fde747 (patch) | |
tree | 01daf65c47092d228127588ffbcb0e63b128f01a /src/soundmanager.cpp | |
parent | 1e54255d9578e00ed699a458d9772f1035564620 (diff) | |
download | manaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.tar.gz manaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.tar.bz2 manaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.tar.xz manaplus-22e4c80cc35e552ef39639a874f3c54f11fde747.zip |
Fix for race conditions in application termination.
This bug mostly visible in windows.
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r-- | src/soundmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index d1a6a5d74..7ab66110a 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -66,6 +66,10 @@ SoundManager::SoundManager(): SoundManager::~SoundManager() { +} + +void SoundManager::shutdown() +{ config.removeListeners(this); // Unlink the callback function. |