Fix a mismatched malloc/delete resulting from StdStdBuf::GrabPointer usage

stable-5.1
Günther Brammer 2011-01-12 19:58:33 +01:00
parent 7725a9290a
commit 503172bf99
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ void C4ValueMapData::CompileFunc(StdCompiler *pComp)
// Set
CreateTempNameList();
pNames->SetNameArray(const_cast<const char **>(ppNames), iValueCnt);
for (int32_t i = 0; i < iValueCnt; i++) delete ppNames[i];
for (int32_t i = 0; i < iValueCnt; i++) free(ppNames[i]);
delete [] ppNames; delete [] pData;
pData = pValues;
// Assign old name list