# HG changeset patch
# User koda
# Date 1323629824 -3600
# Node ID 416fdfb666dae70761603681db11aa2595bc1a26
# Parent  666fccd5cb3ad5eb5eafa2b93132fc5b755e72d0
make sure to stop music before freeing it

diff -r 666fccd5cb3a -r 416fdfb666da QTfrontend/util/SDLInteraction.cpp
--- a/QTfrontend/util/SDLInteraction.cpp	Sun Dec 11 14:52:02 2011 +0100
+++ b/QTfrontend/util/SDLInteraction.cpp	Sun Dec 11 19:57:04 2011 +0100
@@ -63,8 +63,10 @@
     stopMusic();
     if (m_audioInitialized)
     {
-        if (m_music != NULL)
+        if (m_music != NULL) {
+            Mix_HaltMusic();
             Mix_FreeMusic(m_music);
+        }
         Mix_CloseAudio();
     }
     SDL_Quit();