Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2019-12-16 10:42:59 +0000
committerAndrey Loskutov2019-12-16 12:09:53 +0000
commitacff521e74c11c0ca440b9fb5c125b1786451304 (patch)
treeb236ccd10fa499b5e1fbbd951198f7d82f90dc80 /bundles/org.eclipse.swt/Eclipse SWT Accessibility
parentffd21d4efdd0e46b1967be08942bc6f828787c40 (diff)
downloadeclipse.platform.swt-acff521e74c11c0ca440b9fb5c125b1786451304.tar.gz
eclipse.platform.swt-acff521e74c11c0ca440b9fb5c125b1786451304.tar.xz
eclipse.platform.swt-acff521e74c11c0ca440b9fb5c125b1786451304.zip
Bug 558339 - [win32] ConcurrentModificationException in Accessible, take
2 Fixed other remaining place coming from https://git.eclipse.org/r/#/c/153212/, see bug 558339 comment 4. Change-Id: I867b530c7a6a09aacc6bbed7d86e1333a476edb3 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Accessibility')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
index 9c54416141..6458df2494 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
@@ -916,8 +916,9 @@ public class Accessible {
}
iaccessible = null;
Release();
- for (Accessible child : children) {
- child.dispose();
+ List<Accessible> list = new ArrayList<>(children);
+ for (Accessible accChild : list) {
+ accChild.dispose();
}
}

Back to the top