[VALGRIND] delete error

This commit is contained in:
Edouard DUPIN 2014-10-23 22:17:39 +02:00
parent a4c544e916
commit 479921d347

View File

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