mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Null tag address before freeing multi tag allocation
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cffac84a3b
commit
6b1d3e275a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user