mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
fix mismatched-new-delete when using unique_ptr
Related-To: NEO-6511 Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dcea913fbc
commit
31d68c42e6
@@ -29,7 +29,7 @@ GraphicsAllocation *FlatBatchBufferHelperHw<GfxFamily>::flattenBatchBuffer(uint3
|
||||
|
||||
size_t indirectPatchCommandsSize = 0u;
|
||||
std::vector<PatchInfoData> indirectPatchInfo;
|
||||
std::unique_ptr<char> indirectPatchCommands(getIndirectPatchCommands(indirectPatchCommandsSize, indirectPatchInfo));
|
||||
std::unique_ptr<char[]> indirectPatchCommands(getIndirectPatchCommands(indirectPatchCommandsSize, indirectPatchInfo));
|
||||
|
||||
if (dispatchMode == DispatchMode::ImmediateDispatch) {
|
||||
if (batchBuffer.chainedBatchBuffer) {
|
||||
@@ -158,7 +158,7 @@ char *FlatBatchBufferHelperHw<GfxFamily>::getIndirectPatchCommands(size_t &indir
|
||||
|
||||
uint64_t stiCommandOffset = 0;
|
||||
std::vector<PatchInfoData> patchInfoCopy = patchInfoCollection;
|
||||
std::unique_ptr<char> buffer(new char[indirectPatchCommandsSize]);
|
||||
std::unique_ptr<char[]> buffer(new char[indirectPatchCommandsSize]);
|
||||
LinearStream indirectPatchCommandStream(buffer.get(), indirectPatchCommandsSize);
|
||||
patchInfoCollection.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user