diff --git a/stimBuffApis/livoxGen1/stagingBuffer.h b/stimBuffApis/livoxGen1/stagingBuffer.h index fe90438..9c0f4a1 100644 --- a/stimBuffApis/livoxGen1/stagingBuffer.h +++ b/stimBuffApis/livoxGen1/stagingBuffer.h @@ -148,7 +148,7 @@ assemblingFlag(false) computeSlotStrideAndBufferSize(); - buffer.reset(new uint8_t[bufferNBytes]); + buffer = std::make_unique(bufferNBytes); currentNBytes.store(0); // Build FrameAssemblyDesc once