indexabout

This is a web interface for Eclipse Git repositories. Many projects also use the Gerrit Code Review. For more information about Git, please see the Git Wiki page.

The contents of the Git repositories are made available under the terms and conditions of the Eclipse.org Software User Agreement.

Eclipse Platform SWTCode Review
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2011-07-21 16:44:20 -0400
committerFelipe Heidrich2011-07-21 16:45:27 -0400
commit497b053864daffc7b924c42f6f8cf339644548f2 (patch)
treeb4b5deff763801b468748da7d670b27d7caa7dc0
parent86e590387fc98740eb431ea80c5942750b2c6d0c (diff)
downloadeclipse.platform.swt-497b053864daffc7b924c42f6f8cf339644548f2.zip
eclipse.platform.swt-497b053864daffc7b924c42f6f8cf339644548f2.tar.gz
eclipse.platform.swt-497b053864daffc7b924c42f6f8cf339644548f2.tar.xz
BugĀ 351916 - StyledText crash in OS.ATSUGetTextHighlight
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351916
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
index 94ba664..6369e78 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
@@ -2252,7 +2252,10 @@ int kEventControlTrack (int nextHandler, int theEvent, int userData) {
display.pollingTimer = timer = id [0];
}
}
+ int window = OS.GetControlOwner (handle);
+ OS.CFRetain (window);
int result = super.kEventControlTrack (nextHandler, theEvent, userData);
+ OS.CFRelease (window);
if (timer != 0) {
OS.RemoveEventLoopTimer (timer);
display.pollingTimer = 0;