Correct releasing pin Buffer Object in DrmMemoryManager

Change-Id: I451449b90de03345d8fb4f7858ca04a56978fea7
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
Igor Venevtsev
2019-08-29 10:46:39 +02:00
committed by sys_ocldev
parent 4974d08a29
commit 7be1853013

View File

@ -64,11 +64,11 @@ DrmMemoryManager::~DrmMemoryManager() {
gemCloseWorker->close(false);
}
if (pinBB) {
unreference(pinBB, true);
DrmMemoryManager::unreference(pinBB, true);
pinBB = nullptr;
}
if (memoryForPinBB) {
alignedFreeWrapper(memoryForPinBB);
MemoryManager::alignedFreeWrapper(memoryForPinBB);
}
}