diff options
| author | Silenio Quarti | 2011-07-21 20:44:20 +0000 |
|---|---|---|
| committer | Felipe Heidrich | 2011-07-21 20:45:27 +0000 |
| commit | 497b053864daffc7b924c42f6f8cf339644548f2 (patch) | |
| tree | b4b5deff763801b468748da7d670b27d7caa7dc0 | |
| parent | 86e590387fc98740eb431ea80c5942750b2c6d0c (diff) | |
| download | eclipse.platform.ui-497b053864daffc7b924c42f6f8cf339644548f2.tar.gz eclipse.platform.ui-497b053864daffc7b924c42f6f8cf339644548f2.tar.xz eclipse.platform.ui-497b053864daffc7b924c42f6f8cf339644548f2.zip | |
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.java | 3 |
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 94ba66405dd..6369e786968 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; |
