changeset 6524 | 416fdfb666da |
parent 6170 | 2b1748161278 |
child 6585 | 6225b838a630 |
6523:666fccd5cb3a | 6524:416fdfb666da |
---|---|
61 SDLInteraction::~SDLInteraction() |
61 SDLInteraction::~SDLInteraction() |
62 { |
62 { |
63 stopMusic(); |
63 stopMusic(); |
64 if (m_audioInitialized) |
64 if (m_audioInitialized) |
65 { |
65 { |
66 if (m_music != NULL) |
66 if (m_music != NULL) { |
67 Mix_HaltMusic(); |
|
67 Mix_FreeMusic(m_music); |
68 Mix_FreeMusic(m_music); |
69 } |
|
68 Mix_CloseAudio(); |
70 Mix_CloseAudio(); |
69 } |
71 } |
70 SDL_Quit(); |
72 SDL_Quit(); |
71 |
73 |
72 delete m_soundMap; |
74 delete m_soundMap; |