diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-04 21:06:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-04 21:06:25 +0300 |
commit | 3bd429f0ce19526b6b34a2c27d2d3085f012e192 (patch) | |
tree | ea7fe9f1a66ffb464eb7ba54477054323a4561fa | |
parent | 44ebc4841af7d84676786cc6954b5fbb53241ed1 (diff) | |
download | manaplus-3bd429f0ce19526b6b34a2c27d2d3085f012e192.tar.gz manaplus-3bd429f0ce19526b6b34a2c27d2d3085f012e192.tar.bz2 manaplus-3bd429f0ce19526b6b34a2c27d2d3085f012e192.tar.xz manaplus-3bd429f0ce19526b6b34a2c27d2d3085f012e192.zip |
fix crash in debug builds on exit.
-rw-r--r-- | src/soundmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index a8dd144cf..be36c0f6a 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -71,7 +71,6 @@ SoundManager::SoundManager(): SoundManager::~SoundManager() { - CHECKLISTENERS } void SoundManager::shutdown() @@ -80,6 +79,8 @@ void SoundManager::shutdown() // Unlink the callback function. Mix_HookMusicFinished(nullptr); + + CHECKLISTENERS } void SoundManager::optionChanged(const std::string &value) |