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 - memory leak in OutlinePanel
Summary: memory leak in OutlinePanel
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 123530
  Show dependency tree
 
Reported: 2008-01-18 02:04 UTC by Quy Nguyen
Modified: 2008-01-18 20:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
memory leak (131.12 KB, image/jpeg)
2008-01-18 02:06 UTC, Quy Nguyen
Details

Note You need to log in before you can comment on or make changes to this bug.
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.