From b92e42daaa9b5eb8265116d08bd94d0a6eb76142 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Thu, 15 Dec 2011 21:45:26 +0000 Subject: [PATCH] Fixed memory leak in PrintMemInfo --- neo/sound/snd_cache.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/neo/sound/snd_cache.cpp b/neo/sound/snd_cache.cpp index df1119d..0c2a01e 100644 --- a/neo/sound/snd_cache.cpp +++ b/neo/sound/snd_cache.cpp @@ -270,6 +270,7 @@ void idSoundCache::PrintMemInfo( MemInfo_t *mi ) { f->Printf( "\nTotal sound bytes allocated: %s\n", idStr::FormatNumber( total ).c_str() ); fileSystem->CloseFile( f ); + delete[] sortIndex; } -- 1.7.8