mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Use proper version of delete operator in MockCsrHw2
This change removes undefined behavior related to usage of delete operator on the memory allocated via new[]. Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a6a91b2cf5
commit
05f351484c
@@ -308,7 +308,7 @@ class MockCsrHw2 : public CommandStreamReceiverHw<GfxFamily> {
|
||||
|
||||
bool skipBlitCalls = false;
|
||||
bool storeFlushedTaskStream = false;
|
||||
std::unique_ptr<uint8_t> storedTaskStream;
|
||||
std::unique_ptr<uint8_t[]> storedTaskStream;
|
||||
size_t storedTaskStreamSize = 0;
|
||||
|
||||
int flushCalledCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user