Fixed a memory leak

This commit is contained in:
Zane U. Ji 2013-10-25 19:24:33 +08:00
parent 5310603467
commit 29766c2d45
1 changed files with 1 additions and 1 deletions

View File

@ -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];