summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-04 21:06:25 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-04 21:06:25 +0300
commit3bd429f0ce19526b6b34a2c27d2d3085f012e192 (patch)
treeea7fe9f1a66ffb464eb7ba54477054323a4561fa
parent44ebc4841af7d84676786cc6954b5fbb53241ed1 (diff)
downloadmv-3bd429f0ce19526b6b34a2c27d2d3085f012e192.tar.gz
mv-3bd429f0ce19526b6b34a2c27d2d3085f012e192.tar.bz2
mv-3bd429f0ce19526b6b34a2c27d2d3085f012e192.tar.xz
mv-3bd429f0ce19526b6b34a2c27d2d3085f012e192.zip
fix crash in debug builds on exit.
-rw-r--r--src/soundmanager.cpp3
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)