Resource leak in FOverlay?

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