Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-12-04 04:19:53 -0500
committerAlexander Kurtakov2018-01-17 06:12:53 -0500
commit11509fa4f109d7a79da5f9e9fce6d3b1fd75d9b5 (patch)
tree5437bc611aa52f9e3909ce8602b939795b90fb02 /bundles/org.eclipse.swt/Eclipse SWT/win32
parent9d7d4d705aa00fe4850c6ef818ccc01f942d9909 (diff)
downloadeclipse.platform.swt-11509fa4f109d7a79da5f9e9fce6d3b1fd75d9b5.tar.gz
eclipse.platform.swt-11509fa4f109d7a79da5f9e9fce6d3b1fd75d9b5.tar.xz
eclipse.platform.swt-11509fa4f109d7a79da5f9e9fce6d3b1fd75d9b5.zip
Bug 528081 - Added disposal checks
Change-Id: I20c0025955a94745822e400b67c90e5d75362f09 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
index a08c092caf..3da80a1eee 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java
@@ -627,6 +627,9 @@ void destroyWidget () {
}
void fixMenus (Decorations newParent) {
+ if (isDisposed()) {
+ return;
+ }
MenuItem [] items = getItems ();
for (int i=0; i<items.length; i++) {
items [i].fixMenus (newParent);

Back to the top