From ba5fe6853dd983f41b29106f2a41db7d885ae10f Mon Sep 17 00:00:00 2001 From: Dmitry Tsarevich Date: Wed, 26 Feb 2025 16:23:46 +0300 Subject: [PATCH] client: Do not leak particles.txt | maps/xxx_particles.txt KeyValues during map load --- src/game/shared/particle_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/shared/particle_parse.cpp b/src/game/shared/particle_parse.cpp index 73cdb253..1e3abad4 100644 --- a/src/game/shared/particle_parse.cpp +++ b/src/game/shared/particle_parse.cpp @@ -186,7 +186,7 @@ void ParseParticleEffectsMap( const char *pMapName, bool bLoadSheets ) V_snprintf( szMapManifestFilename, sizeof( szMapManifestFilename ), "maps/%s_particles.txt", pMapName ); } - KeyValues *manifest = new KeyValues( szMapManifestFilename ); + KeyValuesAD manifest( szMapManifestFilename ); // In order: // - particles.txt within the map BSP