Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-05-27 21:48:53 -0400
committerspingel2010-05-27 21:48:53 -0400
commit38114cf76734d8045784a897c3a4f68603cb5812 (patch)
treed5abc22f34e38607bbbac7984ca503d1fab8ef1b /org.eclipse.mylyn.tasks.ui
parent9fd37c1ac7103deafd6df810331ee61245e9bea3 (diff)
downloadorg.eclipse.mylyn.tasks-38114cf76734d8045784a897c3a4f68603cb5812.tar.gz
org.eclipse.mylyn.tasks-38114cf76734d8045784a897c3a4f68603cb5812.tar.xz
org.eclipse.mylyn.tasks-38114cf76734d8045784a897c3a4f68603cb5812.zip
NEW - bug 314794: memory not freed when task editor is closed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314794
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
index 7f97d28f4..e46484638 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
@@ -493,8 +493,13 @@ public class TaskEditor extends SharedHeaderFormEditor {
if (activateAction != null) {
activateAction.dispose();
}
- if (menuService != null && toolBarManager instanceof ContributionManager) {
- menuService.releaseContributions((ContributionManager) toolBarManager);
+ if (menuService != null) {
+ if (leftToolBarManager != null) {
+ menuService.releaseContributions(leftToolBarManager);
+ }
+ if (toolBarManager instanceof ContributionManager) {
+ menuService.releaseContributions((ContributionManager) toolBarManager);
+ }
}
if (textSupport != null) {
textSupport.dispose();

Back to the top