[VALGRIND] delete error

This commit is contained in:
Edouard DUPIN 2014-10-23 22:17:39 +02:00
parent ad2d06e436
commit 226d95135c

View File

@ -84,7 +84,7 @@ bool ejson::Document::load(const std::string& _file) {
std::string tmpDataUnicode(fileBuffer);
// remove temporary buffer:
delete(fileBuffer);
delete[] fileBuffer;
// parse the data :
bool ret = parse(tmpDataUnicode);
//Display();