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:
Patryk Wrobel
2022-08-15 23:20:08 +00:00
committed by Compute-Runtime-Automation
parent a6a91b2cf5
commit 05f351484c

View File

@@ -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;