I am trying to destroy a name card by putting it to trash and emptying it. If I look in the
Inspector, I notice that the AddressCard that the name card referred to is not destroyed.
Shouldn't it be destroyed or there is some special reason for keeping it around?
AddressCard objects are shared. This means that when you destroy objects that refer to an
address card, the AddressCard object (and the objects it refers to) will not get destroyed.
Shared objects that are no longer referred to by any other object will be garbage collected,
so memory leaks don't occur. What you're seeing is the proper behavior for address cards.