mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Correct releasing pin Buffer Object in DrmMemoryManager
Change-Id: I451449b90de03345d8fb4f7858ca04a56978fea7 Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
4974d08a29
commit
7be1853013
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user