diff options
author | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-05-09 16:37:46 +0530 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-05-09 10:34:15 -0400 |
commit | f90f7af3df5ef739b7d7ba537ec4821eef39ebe4 (patch) | |
tree | 9311af64cb9413cfb6ea8b8df1e191e251fb5f75 /bundles | |
parent | 3435c841ff1fddd408f0370db7b59b1a4fd87446 (diff) | |
download | eclipse.platform.swt-f90f7af3df5ef739b7d7ba537ec4821eef39ebe4.tar.gz eclipse.platform.swt-f90f7af3df5ef739b7d7ba537ec4821eef39ebe4.tar.xz eclipse.platform.swt-f90f7af3df5ef739b7d7ba537ec4821eef39ebe4.zip |
Fix memory leak in Shell#setToolTipText()
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index e4f6baf362..818f311835 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -2402,6 +2402,7 @@ void setToolTipText (int /*long*/ rootWidget, int /*long*/ tipWidget, String str } else if (buffer != null && oldTooltip != 0) { if (OS.strcmp (oldTooltip, buffer) == 0) return; } + if (oldTooltip != 0) OS.g_free(oldTooltip); OS.gtk_widget_set_tooltip_text (rootWidget, null); /* * Bug in GTK. In GTK 2.12, due to a miscalculation of window |