Skip to content

Commit ebe8663

Browse files
dimhotepusEricS-Valve
authored andcommitted
shared: Do not leak activity remap (scripts/actremap.txt) KeyValues (found by random KV allocations review)
1 parent a70e797 commit ebe8663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/shared/activitylist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,7 @@ void UTIL_LoadActivityRemapFile( const char *filename, const char *section, CUtl
26072607
return;
26082608
}
26092609

2610-
KeyValues *pkvFile = new KeyValues( section );
2610+
KeyValuesAD pkvFile( section );
26112611

26122612
if ( pkvFile->LoadFromFile( filesystem, filename, NULL ) )
26132613
{

0 commit comments

Comments
 (0)