Fixes a memory leak of the chat window which may also cause disappearing ot some plugins from the toolbar.

cusax-fix
Damian Minkov 13 years ago
parent 5f66f44716
commit 83388eefc8

@ -116,6 +116,7 @@ public void dispose()
{
pluginContainer.dispose();
helpMenu.dispose();
optionsMenu.dispose();
}
/**

@ -507,6 +507,24 @@ public void run()
initVideoBridgeMenuWorker.start();
}
/**
* Runs clean-up for associated resources which need explicit disposal (e.g.
* listeners keeping this instance alive because they were added to the
* model which operationally outlives this instance).
*/
public void dispose()
{
GuiActivator.bundleContext.removeServiceListener(this);
GuiActivator.getUIService().removePluginComponentListener(this);
/*
* Let go of all Components contributed by PluginComponents because the
* latter will still live in the contribution store.
*/
removeAll();
}
/**
* Initializes the video bridge menu on Mac OSX.
*/

Loading…
Cancel
Save