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:
@@ -432,7 +432,14 @@ void ReadTexReferences(char *filename)
|
||||
istr.get(ch);
|
||||
}
|
||||
section[i] = 0;
|
||||
|
||||
// gt - needed to trick the hash table "TexReferences" into deleting the key
|
||||
// strings it creates in the Put() function, but not the item that is
|
||||
// created here, as that is destroyed elsewhere. Without doing this, there
|
||||
// were massive memory leaks
|
||||
TexReferences.DeleteContents(TRUE);
|
||||
TexReferences.Put(label, new TexRef(label, file, section, sectionName));
|
||||
TexReferences.DeleteContents(FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user