Dealloc for trees.