src: Use std::unique_ptr for nv