Commit 92fa7132 authored by David Flynn's avatar David Flynn
Browse files

tmc3: fix mismatched new[]/delete via std::unique_ptr<>

git-svn-id: 94298a81-5874-47c9-aab8-bfb24faeed7f
parent 45cbe1e0
......@@ -323,7 +323,7 @@ int Compress(const Parameters &params, Stopwatch& clock) {
PCCBitstream bitstream = {};
const size_t predictedBitstreamSize =
encoder.estimateBitstreamSize(pointCloud, params.encodeParameters);
std::unique_ptr<uint8_t> buffer(new uint8_t[predictedBitstreamSize]);
std::unique_ptr<uint8_t[]> buffer(new uint8_t[predictedBitstreamSize]);
bitstream.buffer = buffer.get();
bitstream.capacity = predictedBitstreamSize;
bitstream.size = 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment