shared: Do not leak activity remap (scripts/actremap.txt) KeyValues (found by random KV allocations review)

This commit is contained in:
Dmitry Tsarevich 2025-02-26 16:22:03 +03:00 committed by EricS-Valve
parent a70e797ea5
commit ebe866322d

View File

@ -2607,7 +2607,7 @@ void UTIL_LoadActivityRemapFile( const char *filename, const char *section, CUtl
return; return;
} }
KeyValues *pkvFile = new KeyValues( section ); KeyValuesAD pkvFile( section );
if ( pkvFile->LoadFromFile( filesystem, filename, NULL ) ) if ( pkvFile->LoadFromFile( filesystem, filename, NULL ) )
{ {