#978 Popup Menu causing SWT Memory Leak

open
nobody
General (896)
5
2012-11-27
2010-01-15
jonibal
No

Using SWT technology, the Popup Menu for an XYPlot causes a memory leak when the parent Control is disposed. In fact, not a single menu item will be disposed and therefore remain in memory. A workaround is to add the popup menu as a DisposeListener to the parent Control. The correct solution would be to add the menu with the setMenu(..) Method on the control.

This memory leak might appear on every plot that has a popup menu.

Discussion