Skip to content

Commit

Permalink
Minor fixup to 92d1a26
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 9, 2017
1 parent 92d1a26 commit 3b88044
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sound.cpp
Expand Up @@ -605,9 +605,7 @@ void music_thinker::process(events::pump_info &info) {
}

if (unload_music) {
for (auto track : music_cache) {
Mix_FreeMusic(track.second.get());
}
// The custom shared_ptr deleter (Mix_FreeMusic) will handle the freeing of each track.
music_cache.clear();

Mix_HookMusicFinished(nullptr);
Expand Down

0 comments on commit 3b88044

Please sign in to comment.