mirror of
https://github.com/raysan5/raylib.git
synced 2026-07-11 19:59:35 +00:00
[raudio] Fix memory leak when loading .wav files (#5963)
* [raudio] Fix memory leak when loading .wav files * [change] Insert a space.
This commit is contained in:
@@ -1772,7 +1772,7 @@ void UnloadMusicStream(Music music)
|
||||
{
|
||||
if (false) { }
|
||||
#if SUPPORT_FILEFORMAT_WAV
|
||||
else if (music.ctxType == MUSIC_AUDIO_WAV) drwav_uninit((drwav *)music.ctxData);
|
||||
else if (music.ctxType == MUSIC_AUDIO_WAV) { drwav_uninit((drwav *)music.ctxData); RL_FREE(music.ctxData); }
|
||||
#endif
|
||||
#if SUPPORT_FILEFORMAT_OGG
|
||||
else if (music.ctxType == MUSIC_AUDIO_OGG) stb_vorbis_close((stb_vorbis *)music.ctxData);
|
||||
|
||||
Reference in New Issue
Block a user