Use delete[] instead of delete for array types.
For more information, see issue 14: https://code.google.com/p/cld2/issues/detail?id=14 git-svn-id: https://cld2.googlecode.com/svn/trunk@161 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
@@ -156,7 +156,7 @@ Usage:\n\
|
||||
return -1;
|
||||
}
|
||||
CLD2DynamicData::dumpHeader(header);
|
||||
delete header->tableHeaders;
|
||||
delete[] header->tableHeaders;
|
||||
delete header;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user