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.
I noticed that TemplateChooserPanelGUI uses the Utilities.attachInitJob, which adds a strongly reference listener to the AWTEventListener. The listener is causing a leak each time this is invoked from the new menu on a project. Seems like either the detach can somehow be invoked when the job is complete or a WeakReference could be used.
After looking at this a bit more I noticed that the job is never started, so the easiest solution may be to remove this invocation. Although, I am not sure about the consequences of this.
instance org.netbeans.modules.project.ui.NewFileWizard@2aa58 ------------------------------ org.netbeans.modules.project.ui.TemplateChooserPanelGUI.PROJECT_CELL_RENDERER-> org.netbeans.modules.project.ui.TemplateChooserPanelGUI$ProjectCellRenderer@405-> javax.swing.CellRendererPane@192f-> javax.swing.JComboBox@3046-> org.netbeans.modules.project.ui.TemplateChooserPanelGUI@4eb7-> java.beans.PropertyChangeSupport@8d4c-> sun.awt.EventListenerAggregate@f11c-> [Ljava.beans.PropertyChangeListener;@177b4-> org.openide.loaders.TemplateWizard$4@2037c-> org.netbeans.modules.project.ui.NewFileWizard@2aa58
Radim, thanks for figure out what holds the TemplateChooser panel. fixed in src/org/netbeans/modules/project/ui/TemplateChooserPanelGUI.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/TemplateChooserPanelGUI.java,v <-- TemplateChooserPanelGUI.java new revision: 1.32; previous revision: 1.31 done