From 8afae756194587a43a610e5d0d706f3f2b1f2576 Mon Sep 17 00:00:00 2001 From: Hanno Date: Wed, 1 Mar 2017 20:09:36 +0100 Subject: use delete [] instead of delete --- dict-generate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dict-generate.cpp b/dict-generate.cpp index 410182d..8dd48d4 100644 --- a/dict-generate.cpp +++ b/dict-generate.cpp @@ -1046,7 +1046,7 @@ static int OutputBinary(ostream *Out, const string & ChkFile, const string & Cha Out->write((char *)WordEnds, NumWordEnd); h(WordEnds, NumWordEnd); OutputSize += NumWordEnd; - delete WordEnds; + delete [] WordEnds; StringIntSet_t::iterator Its; string Str; -- cgit v1.2.3