From 7ca971f04907031b80ffbcb159e5af2f595e3af8 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 23 Sep 2005 23:47:32 +0000 Subject: Merged most of the changes in biggeruniverse's second memory cleanup patch. --- src/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sound.cpp') diff --git a/src/sound.cpp b/src/sound.cpp index d562a688..7bbe36e7 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -38,8 +38,6 @@ Sound::Sound(): Sound::~Sound() { - stopMusic(); - close(); } void Sound::init() @@ -207,6 +205,8 @@ void Sound::playSfx(const char *path) void Sound::close() { + stopMusic(); + installed = false; Mix_CloseAudio(); logger->log("Sound::close() Shutting down sound..."); -- cgit v1.2.3-70-g09d2