Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367417 - IndexerPreferenceListener leaks CEditor instance
Summary: IndexerPreferenceListener leaks CEditor instance
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0.1   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 8.0.2   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 08:26 EST by Anton Leherbauer CLA
Modified: 2011-12-23 04:47 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Leherbauer CLA 2011-12-22 08:26:58 EST
CQ:WIND00324760

The IndexerPreferenceListener is not unregistered when the editor is closed leaking the editor instance and its references.
Comment 1 Anton Leherbauer CLA 2011-12-22 08:29:12 EST
> CQ:WIND00324760
correction: CQ:WIND00324824
Comment 2 Anton Leherbauer CLA 2011-12-23 04:47:44 EST
Fixed in cdt_8_0 and master.
Added also a test for leaking CEditor instance after close:
org.eclipse.cdt.ui.tests.text.BasicCEditorTest.testLeakingInstanceAfterClose()