Community
Participate
Working Groups
In line 166, a menu is created on the shell of the toolbar. This menu does not get disposed when the toolbar gets disposed. This means that the menu will stick around until the shell has been closed. For the average user that only has one workbench window for their Eclipse session, this means it will leak for the lifetime of their Eclipse session. On line 411, Widget's dispose() method is overridden. This is not how to get notifications about the widget being disposed. This causes a leak of six Image instances and one Color instance. From the javadoc of dispose(): "NOTE: This method is not called recursively on the descendants of the receiver. This means that, widget implementers can not detect when a widget is being disposed of by re-implementing this method, but should instead listen for the Dispose event."
Thanks for reporting this, proposed fixed pushed to: http://egit.eclipse.org/r/#change,3995
merged as 2188667c1e62625f1956e7a54e944135bc16ea3e