[1.0.27] Memory leak with various 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 various light definitions

Post by Carnevil »

The LightAssociations and LightDefaults arrays are not being freed. I was able to fix this by adding:

Code: Select all

atterm( gl_ReleaseLights );
... to the beginning of gl_DoParseDefs().
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Fixed. But the better place to add this call is the start of gl_ParseDefs because gl_DoParseDefs gets called twice.
Locked

Return to “Closed Bugs”