From 6d2e92cf20f7c4479f586e559045598bcdd1c082 Mon Sep 17 00:00:00 2001 From: Filip Hazubski Date: Wed, 27 Mar 2019 15:01:17 +0100 Subject: [PATCH] Fix typo in variable name Change-Id: Ic9c4e0af7c886223cfc7dda53aaf49512ecd59f2 Signed-off-by: Filip Hazubski --- runtime/mem_obj/mem_obj.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/mem_obj/mem_obj.cpp b/runtime/mem_obj/mem_obj.cpp index bb400b10d5..b35595fd94 100644 --- a/runtime/mem_obj/mem_obj.cpp +++ b/runtime/mem_obj/mem_obj.cpp @@ -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; }