Memory Leaks?

BlitzMax Forums/BlitzMax Programming/Memory Leaks?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Assuming you have no other references to Ninja but in the World list, everything should be gone. When ninja is removed from the list, there are no remaining handles, so ninja is removed. Because sword's handle was in the memory that's just been freed, it should be gone too.

I *believe* what Dreamora means is if your Sword had a handle to Ninja ( perhaps an owner field ) then this would cause problems because they both have references to each other and could never be freed without specifically clearning the owner reference as well.