Fix typo in variable name

Change-Id: Ic9c4e0af7c886223cfc7dda53aaf49512ecd59f2
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2019-03-27 15:01:17 +01:00
committed by sys_ocldev
parent 74a02adabe
commit 6d2e92cf20

View File

@@ -64,14 +64,14 @@ MemObj::~MemObj() {
}
if (graphicsAllocation && !associatedMemObject && !isHostPtrSVM && graphicsAllocation->peekReuseCount() == 0) {
memoryManager->removeAllocationFromHostPtrManager(graphicsAllocation);
bool doAsyncDestrucions = DebugManager.flags.EnableAsyncDestroyAllocations.get();
if (!doAsyncDestrucions) {
bool doAsyncDestructions = DebugManager.flags.EnableAsyncDestroyAllocations.get();
if (!doAsyncDestructions) {
needWait = true;
}
if (needWait && graphicsAllocation->isUsed()) {
memoryManager->waitForEnginesCompletion(*graphicsAllocation);
}
destroyGraphicsAllocation(graphicsAllocation, doAsyncDestrucions);
destroyGraphicsAllocation(graphicsAllocation, doAsyncDestructions);
graphicsAllocation = nullptr;
}