From eae5d3333f5001512c82f22f2b1433a955b3a6c3 Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Fri, 24 Aug 2018 18:02:46 -0400
Subject: [PATCH] Stub I_UnloadSong because we already unload in I_StopMusic

* Stop-gap for now. Ideally the logic would be in the respective places.

# Conflicts:
#	src/sdl/mixer_sound.c
---
 src/sdl/mixer_sound.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c
index c5eb985fa8..b57a868192 100644
--- a/src/sdl/mixer_sound.c
+++ b/src/sdl/mixer_sound.c
@@ -705,8 +705,11 @@ boolean I_LoadSong(char *data, size_t len)
 
 void I_UnloadSong(void)
 {
-	Mix_FreeMusic(music);
-	music = NULL;
+	// \todo unhook looper
+	//var_cleanup();
+	//Mix_FreeMusic(music);
+	//music = NULL;
+	I_StopSong();
 }
 
 boolean I_PlaySong(boolean looping)
-- 
GitLab