Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Thondapu2013-08-28 11:07:59 -0400
committerArun Thondapu2013-08-28 11:22:44 -0400
commitafc0fa6e8d839b2b3830e8588568e0e0ce159e34 (patch)
tree5dee2e44849755df91f8aef9ff69e292546a2c07
parent7a19ba58564472d10a46615ea47b6ab8a0072946 (diff)
downloadeclipse.platform.swt-afc0fa6e8d839b2b3830e8588568e0e0ce159e34.tar.gz
eclipse.platform.swt-afc0fa6e8d839b2b3830e8588568e0e0ce159e34.tar.xz
eclipse.platform.swt-afc0fa6e8d839b2b3830e8588568e0e0ce159e34.zip
Bug 412584 - Resource leak in swt Text control
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
index dd960b52d6..8f2995e200 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
@@ -1854,7 +1854,7 @@ void hookEvents () {
long /*int*/ imContext () {
if (imContext != 0) return imContext;
if ((style & SWT.SINGLE) != 0) {
- return OS.gtk_editable_get_editable (handle) ? OS.GTK_ENTRY_IM_CONTEXT (handle) : 0;
+ return OS.GTK_ENTRY_IM_CONTEXT (handle);
}
return OS.GTK_TEXTVIEW_IM_CONTEXT (handle);
}

Back to the top