From 29766c2d45763bc841fc5ba79053a3a3fb76edc1 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Fri, 25 Oct 2013 19:24:33 +0800 Subject: [PATCH] Fixed a memory leak --- src/xmlcopyeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index 4ed28df..bfa5b2b 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -4838,7 +4838,7 @@ bool MyFrame::saveFile ( XmlDoc *doc, wxString& fileName, bool checkLastModified utf8BufferLen * iconvLenMultiplier + 4; // worst case scenario char *finalBuffer; - char *iconvBuffer = new char[iconvBufferLen]; + char *iconvBuffer; utf8BufferLeft = utf8BufferLen; iconvBuffer = new char[iconvBufferLen];