Lots more memory/resource leak fixes. There are still more, but this solves about 75% of them.
These fixes also speed up tex2rtf greatly. I can now build all the RTF version of the wxWindows manual in under 30 seconds, when before it took around 90 seconds. Curley Brace matching is turned back on again. I cannot find any places where it does not work. If you find one, let me know git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -66,6 +66,27 @@ extern char *TexBibName; // Bibliography output file name
|
||||
extern char *TexTmpBibName; // Temporary bibliography output file name
|
||||
extern wxList ColourTable;
|
||||
extern TexChunk *TopLevel;
|
||||
extern char *PageStyle;
|
||||
extern char *BibliographyStyleString;
|
||||
extern char *DocumentStyleString;
|
||||
extern char *bitmapMethod;
|
||||
extern char *backgroundColourString;
|
||||
extern char *ContentsNameString;
|
||||
extern char *AbstractNameString;
|
||||
extern char *GlossaryNameString;
|
||||
extern char *ReferencesNameString;
|
||||
extern char *FiguresNameString;
|
||||
extern char *TablesNameString;
|
||||
extern char *FigureNameString;
|
||||
extern char *TableNameString;
|
||||
extern char *IndexNameString;
|
||||
extern char *ChapterNameString;
|
||||
extern char *SectionNameString;
|
||||
extern char *SubsectionNameString;
|
||||
extern char *SubsubsectionNameString;
|
||||
extern char *UpNameString;
|
||||
|
||||
|
||||
|
||||
#if wxUSE_HELP
|
||||
wxHelpController *HelpInstance = NULL;
|
||||
@@ -390,7 +411,10 @@ bool MyApp::OnInit()
|
||||
ReadCustomMacros((char*) (const char*) path);
|
||||
|
||||
Go();
|
||||
if (runTwice) Go();
|
||||
if (runTwice)
|
||||
{
|
||||
Go();
|
||||
}
|
||||
#ifdef NO_GUI
|
||||
return 0;
|
||||
#else
|
||||
@@ -507,6 +531,28 @@ int MyApp::OnExit()
|
||||
RTFCharset = NULL;
|
||||
}
|
||||
|
||||
delete [] PageStyle;
|
||||
delete [] BibliographyStyleString;
|
||||
delete [] DocumentStyleString;
|
||||
delete [] bitmapMethod;
|
||||
delete [] backgroundColourString;
|
||||
delete [] ContentsNameString;
|
||||
delete [] AbstractNameString;
|
||||
delete [] GlossaryNameString;
|
||||
delete [] ReferencesNameString;
|
||||
delete [] FiguresNameString;
|
||||
delete [] TablesNameString;
|
||||
delete [] FigureNameString;
|
||||
delete [] TableNameString;
|
||||
delete [] IndexNameString;
|
||||
delete [] ChapterNameString;
|
||||
delete [] SectionNameString;
|
||||
delete [] SubsectionNameString;
|
||||
delete [] SubsubsectionNameString;
|
||||
delete [] UpNameString;
|
||||
if (winHelpTitle)
|
||||
delete[] winHelpTitle;
|
||||
|
||||
// TODO: this simulates zero-memory leaks!
|
||||
// Otherwise there are just too many...
|
||||
#ifndef __WXGTK__
|
||||
|
Reference in New Issue
Block a user