Fixed an error in my memory leak fix.