Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2001-09-14 21:50:47 +0000
committerSilenio Quarti2001-09-14 21:50:47 +0000
commit26687c59c204becd9a87adb2ff000b88fe47922d (patch)
tree1dc53050c8cf2cb24b826ba66f1f501a6fbba0d8 /bundles
parent3408415757b729371c1220b2b2eb5c056e2f2f97 (diff)
downloadeclipse.platform.swt-26687c59c204becd9a87adb2ff000b88fe47922d.tar.gz
eclipse.platform.swt-26687c59c204becd9a87adb2ff000b88fe47922d.tar.xz
eclipse.platform.swt-26687c59c204becd9a87adb2ff000b88fe47922d.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java2
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java
index 2dcf7500bc..4b584f815a 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java
@@ -672,6 +672,8 @@ void realizeWidget() {
void releaseWidget () {
super.releaseWidget ();
+ if (toolTipHandle != 0) destroyToolTip (toolTipHandle);
+ toolTipHandle = 0;
if (menu != null && !menu.isDisposed ()) {
menu.dispose ();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java
index d9b270480d..f5844483de 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java
@@ -296,6 +296,8 @@ void releaseHandle () {
void releaseWidget () {
super.releaseWidget ();
+ if (toolTipHandle != 0) destroyToolTip (toolTipHandle);
+ toolTipHandle = 0;
parent = null;
control = null;
hotImage = null;

Back to the top