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.
Log in to post a comment.