- Puto free del sdl no es igual en tots els SO.

This commit is contained in:
2025-03-27 12:21:30 +01:00
parent c61f02faff
commit 37776fce4a

View File

@@ -175,7 +175,7 @@ JA_Music_t *JA_LoadMusic(Uint8* buffer, Uint32 length)
music->spec.format = SDL_AUDIO_S16;
music->buffer = (Uint8*)SDL_malloc(music->length);
SDL_memcpy(music->buffer, output, music->length);
SDL_free(output);
free(output);
music->pos = 0;
music->state = JA_MUSIC_STOPPED;