From 2e86a732050f8e5d1132ac56b2062fd6c37b0cc7 Mon Sep 17 00:00:00 2001 From: harukalover Date: Tue, 30 Jun 2009 05:29:15 +0000 Subject: [PATCH] Fixed a new[]/delete mismatch Originally committed to SVN as r3089. --- aegisub/src/auto4_lua_scriptreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/auto4_lua_scriptreader.cpp b/aegisub/src/auto4_lua_scriptreader.cpp index 2d9ed6619..abd0291bb 100644 --- a/aegisub/src/auto4_lua_scriptreader.cpp +++ b/aegisub/src/auto4_lua_scriptreader.cpp @@ -58,7 +58,7 @@ namespace Automation4 { LuaScriptReader::~LuaScriptReader() { if (databuf) - delete databuf; + delete[] databuf; fclose(f); }