iMiniB3D bug double clear world

BlitzMax Forums/MiniB3D Module/iMiniB3D bug double clear world

ima747(Posted 2010) [#1]
I think it was reported a while ago, but I just bumped into it again so reporting here so it can get added to the bug list as per simon's request

in iMiniB3D if you call Global::ClearWorld() twice it will crash. Example: game->End() contains ClearWorld(), game end it called when application terminates. When terminating ClearWorld() is also called directly after Game end. The second ClearWorld() causes a crash as it attempts to remove things that have already been removed. Perhaps the lists aren't getting fully emptied?

Not huge since you should know when you've cleared everything, but possibly could indicate a potential leak point, if the world were to be cleared at various points for some reason... Or if you just put in too many calls to be on the safe side...