From f28577b94bf619f8a88dd988c53cd6f520d91f56 Mon Sep 17 00:00:00 2001 From: Dmitry Tsarevich Date: Wed, 26 Feb 2025 05:25:48 +0300 Subject: [PATCH] client: Do not leak medieval game mode autoreplace dictionary (scripts/autorp.txt) KeyValues --- src/game/client/tf/tf_autorp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/tf/tf_autorp.cpp b/src/game/client/tf/tf_autorp.cpp index adb7b24f5..616e86913 100644 --- a/src/game/client/tf/tf_autorp.cpp +++ b/src/game/client/tf/tf_autorp.cpp @@ -35,7 +35,7 @@ void CTFAutoRP::ParseDataFile( void ) Assert( !m_pDataFileKV ); // Load & parse the word files - KeyValues *pFileKV = new KeyValues( "AutoRPFile" ); + KeyValuesAD pFileKV( "AutoRPFile" ); if ( pFileKV->LoadFromFile( filesystem, "scripts/autorp.txt", "MOD" ) == false ) return;