Skip to content

Commit ba5fe68

Browse files
dimhotepusEricS-Valve
authored andcommitted
client: Do not leak particles.txt | maps/xxx_particles.txt KeyValues during map load
1 parent ebe8663 commit ba5fe68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/shared/particle_parse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void ParseParticleEffectsMap( const char *pMapName, bool bLoadSheets )
186186
V_snprintf( szMapManifestFilename, sizeof( szMapManifestFilename ), "maps/%s_particles.txt", pMapName );
187187
}
188188

189-
KeyValues *manifest = new KeyValues( szMapManifestFilename );
189+
KeyValuesAD manifest( szMapManifestFilename );
190190

191191
// In order:
192192
// - particles.txt within the map BSP

0 commit comments

Comments
 (0)