From: cloudwalk Date: Wed, 15 Jul 2020 14:59:09 +0000 (+0000) Subject: Fix a potential memory leak with wavefront sounds X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=734f6d7e47a806d4f57e535979b1f71f986cf48b;p=xonotic%2Fdarkplaces.git Fix a potential memory leak with wavefront sounds git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12822 d7cf8633-e32d-0410-b094-e92efae38249 --- 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; }