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.
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.