This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 125529

Summary: memory leak in OutlinePanel
Product: obsolete Reporter: Quy Nguyen <quynguyen>
Component: visualwebAssignee: Peter Zavadsky <pzavadsky>
Status: VERIFIED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 123530    
Attachments: memory leak

Description Quy Nguyen 2008-01-18 02:04:48 UTC
After the fix to Issue 104145, there is still a memory leak in OutlinePanel.  DesignBeanNode objects leak through the
the OutlinePanel.treeView field.  To reproduce:

1) Create a vw project
2) Add a component to the page (may not be necessary)
3) Close the page
4) Close the project
Comment 1 Quy Nguyen 2008-01-18 02:06:52 UTC
Created attachment 55226 [details]
memory leak
Comment 2 Quy Nguyen 2008-01-18 02:07:56 UTC
Attached is a partial references tree.  It shows the OutlinePanel.treeView object (OutlinePanel$OutlineTreeView)
references to the DesignBeanNode object.
Comment 3 Peter Zavadsky 2008-01-18 17:52:38 UTC
Probably better would be to let the entire OutlinePanel to be garbaged. Investigating.
Comment 4 Peter Zavadsky 2008-01-18 19:21:15 UTC
Fixed.
Now OutlinePanel is not kept by the outline module.

Checking in visualweb/outline/src/org/netbeans/modules/visualweb/outline/OutlinePanel.java;
/cvs/visualweb/outline/src/org/netbeans/modules/visualweb/outline/OutlinePanel.java,v  <--  OutlinePanel.java
new revision: 1.9; previous revision: 1.8
done
Comment 5 Quy Nguyen 2008-01-18 20:02:13 UTC
Verified on build 080118.