Laufengd_Lab_06_Turnin

You need a post-order traversal, not pre-order. Otherwise things are going to crash because you try to access r after you have already deleted it.