Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-05-09 05:49:59 +0000
committerAlexander Kurtakov2019-05-09 05:49:59 +0000
commit3e03fdee49752a153d59a3a1481c0677016d2bf4 (patch)
treeb63b7ce966458ea2f614c363846e2ccc2c5c973a
parent27d38ab20e1dde2f865dc1d5f597c41ccdf3ccda (diff)
downloadeclipse.platform.swt-3e03fdee49752a153d59a3a1481c0677016d2bf4.tar.gz
eclipse.platform.swt-3e03fdee49752a153d59a3a1481c0677016d2bf4.tar.xz
eclipse.platform.swt-3e03fdee49752a153d59a3a1481c0677016d2bf4.zip
Use static method directly.
Change-Id: I811f84a37064c0bc9f8faf93401bb347d084d8b9 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug546274_StyledTextVMCrash.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug546274_StyledTextVMCrash.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug546274_StyledTextVMCrash.java
index 878da10e23..ccd71a55ff 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug546274_StyledTextVMCrash.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug546274_StyledTextVMCrash.java
@@ -17,6 +17,7 @@ import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.internal.C;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
@@ -65,7 +66,7 @@ public class Bug546274_StyledTextVMCrash {
// Make sure the same malloc() block can't be used again
for (int i = 1; i < 1024; i++) {
// Intentional leak
- org.eclipse.swt.internal.gtk.GTK.malloc(i);
+ C.malloc(i);
}
super.scroll(destX, destY, x, y, width, height, all);

Back to the top