client: Do not leak particles.txt | maps/xxx_particles.txt KeyValues during map load

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

View File

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