Page 1 of 1

[1.0.27] Memory leak with actor dynamic light definitions

Posted: Sat Oct 27, 2007 2:14
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.

Posted: Sat Oct 27, 2007 9:44
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.