Fixed a memory leak
This commit is contained in:
parent
5310603467
commit
29766c2d45
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue