[1.0.27] Memory leak with actor dynamic light definitions

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
Carnevil
Developer
Developer
Posts: 99
Joined: Thu Oct 13, 2005 0:13

[1.0.27] Memory leak with actor dynamic light definitions

Post by Carnevil »

As the subject states, the is currently a memory leak having to do with actors' dynamic light definitions. This block in gl_InitializeActorLights() is never being freed:

Code: Select all

				if (!defaults->lightassociations)
				{
					defaults->lightassociations = new TArray<FInternalLightAssociation*>;
				}
I began fixing it myself, but it looked like it was going to be a pretty messy fix (such as doing something like changing lightassociations to a TArray), so I thought I'd leave it alone.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Yeah, this one will be a little messy to fix. I think I'll do this completely differently for the next version because the implementation is very unclean to begin with.
Locked

Return to “Closed Bugs”