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:
@@ -387,21 +387,10 @@ class TexRef: public wxObject
|
||||
char *refFile; // Reference filename (can be NULL)
|
||||
char *sectionNumber; // Section or figure number (as a string)
|
||||
char *sectionName; // name e.g. 'section'
|
||||
TexRef(char *label, char *file, char *section, char *sectionN = NULL)
|
||||
{
|
||||
refLabel = copystring(label);
|
||||
refFile = file ? copystring(file) : (char*) NULL;
|
||||
sectionNumber = section ? copystring(section) : copystring("??");
|
||||
sectionName = sectionN ? copystring(sectionN) : copystring("??");
|
||||
}
|
||||
~TexRef(void)
|
||||
{
|
||||
delete[] refLabel; delete[] refFile; delete[] sectionNumber; delete[] sectionName;
|
||||
}
|
||||
TexRef(char *label, char *file, char *section, char *sectionN = NULL);
|
||||
~TexRef(void);
|
||||
};
|
||||
|
||||
extern wxHashTable TexReferences;
|
||||
|
||||
/*
|
||||
* Add a reference
|
||||
*
|
||||
@@ -511,6 +500,7 @@ class CustomMacro: public wxObject
|
||||
else
|
||||
macroBody = NULL;
|
||||
}
|
||||
~CustomMacro();
|
||||
};
|
||||
|
||||
bool ReadCustomMacros(char *filename);
|
||||
|
Reference in New Issue
Block a user