1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix memory leak

This commit is contained in:
Anton Leherbauer 2007-12-12 14:57:50 +00:00
parent 214698ca9c
commit 0a66354f66

View file

@ -51,8 +51,6 @@ public class CTextTools {
private CCodeScanner fCodeScanner;
/** The C++ source code scanner */
private CCodeScanner fCppCodeScanner;
/** The C partitions scanner */
private FastCPartitionScanner fPartitionScanner;
/** The C multiline comment scanner */
private CCommentScanner fMultilineCommentScanner;
/** The C singleline comment scanner */
@ -100,7 +98,6 @@ public class CTextTools {
fColorManager= new CColorManager(autoDisposeOnDisplayDispose);
fCodeScanner= new CCodeScanner(fColorManager, store, GCCLanguage.getDefault());
fCppCodeScanner= new CCodeScanner(fColorManager, store, GPPLanguage.getDefault());
fPartitionScanner= new FastCPartitionScanner();
fMultilineCommentScanner= new CCommentScanner(fColorManager, store, coreStore, ICColorConstants.C_MULTI_LINE_COMMENT);
fSinglelineCommentScanner= new CCommentScanner(fColorManager, store, coreStore, ICColorConstants.C_SINGLE_LINE_COMMENT);
@ -132,9 +129,6 @@ public class CTextTools {
public void dispose() {
fCodeScanner= null;
fPartitionScanner= null;
fMultilineCommentScanner= null;
fSinglelineCommentScanner= null;
fStringScanner= null;
@ -186,7 +180,7 @@ public class CTextTools {
* @return a C partition scanner
*/
public IPartitionTokenScanner getPartitionScanner() {
return fPartitionScanner;
return new FastCPartitionScanner();
}
/**