forked from JailDoctor/JailAudio
- Puto free del sdl no es igual en tots els SO.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user