Added a missing pointer cleanup