Null tag address before freeing multi tag allocation

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-05-12 08:35:07 +00:00
committed by Compute-Runtime-Automation
parent cffac84a3b
commit 6b1d3e275a

View File

@@ -211,13 +211,13 @@ void CommandStreamReceiver::cleanupResources() {
}
if (tagsMultiAllocation) {
tagAllocation = nullptr;
tagAddress = nullptr;
for (auto graphicsAllocation : tagsMultiAllocation->getGraphicsAllocations()) {
getMemoryManager()->freeGraphicsMemory(graphicsAllocation);
}
delete tagsMultiAllocation;
tagsMultiAllocation = nullptr;
tagAllocation = nullptr;
tagAddress = nullptr;
}
if (globalFenceAllocation) {