Bug 3695

Summary: memory leak in codeFormatterPreferencePage (1GE6WQU)
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Windows NT   
Whiteboard:

Description Erich Gamma CLA 2001-10-10 22:59:21 EDT
AK (5/23/01 7:42:33 PM)
	CodeFormatterPreferencePage should not hold on to the propertyStore it gets in the initDefaults method
	(or cut the link somewhere)
	a lot of memory cannot be freed because of this

NOTES:
EG (5/28/01 4:59:36 PM)
	The CodeFormatterPreferencePage has life cycle is the same as the workbench. 
	It should be an instance variable not a static variable.

AK (5/29/01 2:52:31 PM)
	this does make a differnce - the class keeps links to things it should not.
	the link is static so it is _never_  released. all the stuff that can be reached from that point will consequently be _never_ freed
	and that's a lot of memory as i saw.

EG (18.07.2001 15:34:24)
	review the code for potential memory leaks and misuse of static instead of instance variables.

MA (09.08.2001 15:19:11)
	reviewed and cleaned up code (200)
Comment 1 Erich Gamma CLA 2001-10-12 06:06:15 EDT
disposed
Comment 2 DJ Houghton CLA 2001-10-24 07:17:14 EDT
PRODUCT VERSION:
	110