Resource leak in FOverlay?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Resource leak in FOverlay?
by thomek » 18 Apr 2020, 11:43
Hi,
what happens to the overridden tempOverlay in FOverlay.setVisible below, if not null?
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
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 24 guests