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 41264 - Memory / listener leak in property sheet
Summary: Memory / listener leak in property sheet
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-03-24 13:53 UTC by Petr Nejedly
Modified: 2008-12-22 15:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2004-03-24 13:53:16 UTC
I've spotted growing number of AWTEventMulticaster
chained at one component, all refering to single
listener. The target was
org.openide.explorer.propertysheet.PropertySheet$Listener,
the source was
org.openide.explorer.propertysheet.DescriptionPanel

To reproduce, just open and close form editor
several times.
Comment 1 _ tboudreau 2004-04-02 11:10:01 UTC
Looks like PropertySheet.addNotify() and PropertySheet.removeNotify() are not being called 
symmetrically.  But I think I know whose fault that is - mine - a hack from when the tabs 
were a JTabbedPane (they aren't anymore).
Comment 2 Antonin Nebuzelsky 2004-06-11 17:25:44 UTC
Upgrading to P2. Leaks are too bad to ignore even a single one.
Comment 3 _ tboudreau 2004-06-11 18:02:00 UTC
I actually have work in progress on this and a number of other property sheet issues on 
my laptop - this issue is not being ignored, but will be fixed along with a number of other 
issues in a large commit, probably sometime next week.
Comment 4 _ tboudreau 2004-06-15 18:44:09 UTC
Should be fixed by my commit last night - this listener is gone, and all notifications of its 
kind are now done by finding the property sheet via the component hierarchy, so no 
listeners to forget about.  No listener, no problem.
Comment 5 Tomas Danek 2005-07-18 09:28:12 UTC
If no further comments, I'll verify
Comment 6 Tomas Danek 2005-07-21 08:46:49 UTC
Closing. Feel free to reopen