Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367417

Summary: IndexerPreferenceListener leaks CEditor instance
Product: [Tools] CDT Reporter: Anton Leherbauer <aleherb+eclipse>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: major    
Priority: P3 CC: cdtdoug, malaperle, mober.at+eclipse, wbprio
Version: 8.0.1   
Target Milestone: 8.0.2   
Hardware: All   
OS: All   
Whiteboard:

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()