Jeremy Paxman - Yeeeeeeeees #1 you have to take into account that children entities are freed automatically when the parent is freed, so you have to delete their types when the parent is freed.