Do not use virtual functions in constructor.

Change-Id: Ic720843b3b290b234577e1bc4913dfc07a75733c
This commit is contained in:
Mrozek, Michal
2018-02-21 09:08:36 +01:00
committed by sys_ocldev
parent 60a8aa1b17
commit 75d883c075

View File

@@ -49,13 +49,13 @@ DrmMemoryManager::DrmMemoryManager(Drm *drm, gemCloseWorkerMode mode, bool force
}
if (forcePinAllowed) {
auto mem = alignedMallocWrapper(MemoryConstants::pageSize, MemoryConstants::pageSize);
auto mem = alignedMalloc(MemoryConstants::pageSize, MemoryConstants::pageSize);
DEBUG_BREAK_IF(mem == nullptr);
pinBB = allocUserptr(reinterpret_cast<uintptr_t>(mem), MemoryConstants::pageSize, 0, true);
if (!pinBB) {
alignedFreeWrapper(mem);
alignedFree(mem);
} else {
pinBB->isAllocated = true;
}