Child nodes are now cleared before deleting the pointers to the child
nodes