Fix memleak in snd_cache.cpp (from Harry Jeffery)

This fix is stolen from https://bugzilla.icculus.org/show_bug.cgi?id=5345
This commit is contained in:
Daniel Gibson 2012-05-13 02:31:37 +02:00
parent 6a23b17509
commit 56873e1fec

View file

@ -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;
}