Fix crash in delete of TempWrapper

OCLTST crashing at oclruntime.OCLKernelBinary for
Tahiti because of deleting on pointer vector which
is however a single pointer. The fix will correct
the wrong deleting in TempWrapper destructor.

Change-Id: Ic5a1387a426c102b085a4ef8ff8ff05e6a870cba
This commit is contained in:
Tao Sang
2020-10-22 21:41:04 -04:00
committed by Tao Sang
parent d943cae31f
commit 6a6faf1d58
+1 -1
View File
@@ -96,7 +96,7 @@ bool ClBinary::loadKernels(NullProgram& program, bool* hasRecompiled) {
~TempWrapper() {
for (const auto& it : functionNameMap) {
delete[] it.second;
delete it.second;
}
kernelILs.clear();