It is currently 16 Apr 2024, 11:12
   
Text Size

Resource leak in FOverlay?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Resource leak in FOverlay?

Postby thomek » 18 Apr 2020, 11:43

Hi,

what happens to the overridden tempOverlay in FOverlay.setVisible below, if not null?

Code: Select all
   if (tempOverlay != this && backColor != null) {
       tempOverlay = this;
       Timer.schedule(hideTempOverlayTask, 0.025f);
       return;
   }

Shouldn't it still get hidden at some point in time?
Otherwise it will remain in FOverlay.overlays forever.

Maybe tempOverlay could be a list of objects instead of a single object?

Thanks,
thomek
thomek
 
Posts: 7
Joined: 18 Apr 2020, 10:39
Has thanked: 0 time
Been thanked: 2 times

Re: Resource leak in FOverlay?

Postby thomek » 20 Apr 2020, 11:23

Filed as issue #1369.
thomek
 
Posts: 7
Joined: 18 Apr 2020, 10:39
Has thanked: 0 time
Been thanked: 2 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 35 guests


Who is online

In total there are 35 users online :: 0 registered, 0 hidden and 35 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 35 guests

Login Form