summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2009-04-27 15:29:54 +0000
committerGrant Gayed <ggayed>2009-04-27 15:29:54 +0000
commite55a267ee375791889be3a10ddeeca5810d522ad (patch)
treee748e42b7009de0de061e6e2728882e7f44d6b34 /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse
parent51f1bfac25777ee7d51eb8b157552df0d5fd3c2c (diff)
downloadeclipse.platform.swt-e55a267ee375791889be3a10ddeeca5810d522ad.tar.gz
eclipse.platform.swt-e55a267ee375791889be3a10ddeeca5810d522ad.tar.xz
eclipse.platform.swt-e55a267ee375791889be3a10ddeeca5810d522ad.zip
fix malloc() -> free()
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
index 8d27d1f6bd..4f8dbebfab 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Path.java
@@ -439,7 +439,7 @@ public boolean contains(float x, float y, GC gc, boolean outline) {
OS.CGContextStrokePath(context);
OS.CGContextRelease(context);
OS.memmove(buffer, pixel, 4);
- OS.malloc(pixel);
+ OS.free(pixel);
return buffer[0] != 0xFFFFFFFF;
} else {
NSPoint point = new NSPoint();