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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user