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.
The Action class org.netbeans.modules.print.impl.action.Action has a myPrintProvider instance variable which is set in the enable method and then later used in the performAction method. This pattern triggers the following scenario: 1. Shutdown the IDE with a file open (such as schema). 2. Restart the IDE, during restart the print action (from file menu determines whether it enables and thus stores the print provider). This stores the document and other references into the schema model until the next time enable is called. The print preview action is called more frequently so the leak is shorter, but the print action could potentially only be enabled from the file menu and thus hold on to the print provider for a longer time. The resolution is not to cache the print provider in the enable method and just compute the provider when the perform action is called. This will eliminate the leak.
fixed.