refactor: simplify KernelImmutableData dtor

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-09-28 07:44:40 +00:00
committed by Compute-Runtime-Automation
parent 9c56a11c2e
commit b8c3dea8dd

View File

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