mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: simplify KernelImmutableData dtor
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9c56a11c2e
commit
b8c3dea8dd
@@ -57,8 +57,7 @@ KernelImmutableData::KernelImmutableData(L0::Device *l0device) : device(l0device
|
||||
|
||||
KernelImmutableData::~KernelImmutableData() {
|
||||
if (nullptr != isaGraphicsAllocation) {
|
||||
this->getDevice()->getNEODevice()->getMemoryManager()->freeGraphicsMemory(&*isaGraphicsAllocation);
|
||||
isaGraphicsAllocation.release();
|
||||
this->getDevice()->getNEODevice()->getMemoryManager()->freeGraphicsMemory(isaGraphicsAllocation.release());
|
||||
}
|
||||
crossThreadDataTemplate.reset();
|
||||
surfaceStateHeapTemplate.reset();
|
||||
|
||||
Reference in New Issue
Block a user