Removing spurious delete statements before unique_ptr::reset