[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:
parent
caadb48e25
commit
86c7edfd74
1 changed files with 1 additions and 1 deletions
|
|
@ -1772,7 +1772,7 @@ void UnloadMusicStream(Music music)
|
||||||
{
|
{
|
||||||
if (false) { }
|
if (false) { }
|
||||||
#if SUPPORT_FILEFORMAT_WAV
|
#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
|
#endif
|
||||||
#if SUPPORT_FILEFORMAT_OGG
|
#if SUPPORT_FILEFORMAT_OGG
|
||||||
else if (music.ctxType == MUSIC_AUDIO_OGG) stb_vorbis_close((stb_vorbis *)music.ctxData);
|
else if (music.ctxType == MUSIC_AUDIO_OGG) stb_vorbis_close((stb_vorbis *)music.ctxData);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue