summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/sdlmusic.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp
index 1a6bb7020..fb31c0562 100644
--- a/src/resources/sdlmusic.cpp
+++ b/src/resources/sdlmusic.cpp
@@ -41,11 +41,10 @@ Resource *SDLMusic::load(SDL_RWops *const rw)
{
#ifdef USE_SDL2
if (Mix_Music *const music = Mix_LoadMUSType_RW(rw, MUS_OGG, 1))
-#elif defined(WIN32) || defined ANDROID
+#else
// +++ here probably mem leak
+ // Mix_LoadMUSType_RW was added without version changed in SDL1.2 :(
if (Mix_Music *const music = Mix_LoadMUS_RW(rw))
-#else
- if (Mix_Music *const music = Mix_LoadMUSType_RW(rw, MUS_OGG, SDL_TRUE))
#endif
{
return new SDLMusic(music);