From: Mario Date: Sat, 30 May 2020 14:37:23 +0000 (+1000) Subject: Fix a potential memory leak with wavefront sounds X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9204771c3a759dcdf194679af29b70e458ba7ed4;p=xonotic%2Fdarkplaces.git Fix a potential memory leak with wavefront sounds --- diff --git a/snd_wav.c b/snd_wav.c index 6f861913..b4d014b3 100644 --- a/snd_wav.c +++ b/snd_wav.c @@ -344,5 +344,6 @@ qboolean S_LoadWavFile (const char *filename, sfx_t *sfx) sfx->loopstart = min(sfx->loopstart, sfx->total_length); sfx->flags &= ~SFXFLAG_STREAMED; + Mem_Free(data); // we already got a copy of this in fetcher_data return true; }