removed unnecessary test before deleting pointer