Bug 27114 - something leaks StyleRanges and Lines
Summary: something leaks StyleRanges and Lines
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.1 M4   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-11-25 13:25 EST by Adam Kiezun CLA
Modified: 2002-12-09 13:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-11-25 13:25:01 EST
180K of StyleReanges and 47K of Lines after:
-open editor
-close editor

seems like StyleRange objects are never freed
Comment 1 Adam Kiezun CLA 2002-11-25 13:42:32 EST
i don't know how to fix but this one is major
when JavaEditor.dispose is called, getSourceViewer().getTextWidget() is already 
null

so the mouseListener is never deregistered as a propertyChangeListener on the
IPreferenceStore

this causes the mouseListener to stick around forever, which means its 
enclosing instance is immortal too 
(it being a CompilationUnitEditor you can imagine the size of the leak)
Comment 2 Adam Kiezun CLA 2002-12-09 13:17:08 EST
seems that StyleRanges/Line do not leak here anymore - things get unregistered 
correctly (deregistration done before returning)

opened bug StyleRanges for leaking OS resources
Comment 3 Adam Kiezun CLA 2002-12-09 13:17:47 EST
bug 27962, that is