commit | 28a9a81990dee03e2c1b60bd41ac2cdcb74535ba | [log] [tgz] |
---|---|---|
author | Paul Webster <pwebster> | Fri Sep 14 20:07:34 2007 +0000 |
committer | Paul Webster <pwebster> | Fri Sep 14 20:07:34 2007 +0000 |
tree | 627c853cd4bde9b951ea60e50db0cdd68853d7c7 | |
parent | 6b7a80d960bbfff30a7008a1d698c5bbf587ca79 [diff] |
Bug 202994 [Contributions] Text editor leaks in N20070911-0010
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java index 8371ca4..573c58b 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java
@@ -1112,4 +1112,14 @@ // If for some reason we fall through abort return textValue; } + + /* (non-Javadoc) + * @see org.eclipse.jface.action.ContributionItem#dispose() + */ + public void dispose() { + if (widget!=null) { + widget.dispose(); + widget = null; + } + } }