Fixed a new[]/delete mismatch

Originally committed to SVN as r3089.
This commit is contained in:
harukalover 2009-06-30 05:29:15 +00:00
parent 4952b5168d
commit 9dcd3add79

View file

@ -58,7 +58,7 @@ namespace Automation4 {
LuaScriptReader::~LuaScriptReader() LuaScriptReader::~LuaScriptReader()
{ {
if (databuf) if (databuf)
delete databuf; delete[] databuf;
fclose(f); fclose(f);
} }