diff options
author | Kevin Barnes | 2008-07-09 18:51:35 +0000 |
---|---|---|
committer | Kevin Barnes | 2008-07-09 18:51:35 +0000 |
commit | 4dbd09dcd54c5e8b8416ccbe2fdfacc6901be61f (patch) | |
tree | 7d4709d18db1eed49ac022beba75dacbacb13b1b /bundles/org.eclipse.swt/Eclipse SWT | |
parent | 6b0a245288556e7224d3c56682401ca81ba95245 (diff) | |
download | eclipse.platform.swt-4dbd09dcd54c5e8b8416ccbe2fdfacc6901be61f.tar.gz eclipse.platform.swt-4dbd09dcd54c5e8b8416ccbe2fdfacc6901be61f.tar.xz eclipse.platform.swt-4dbd09dcd54c5e8b8416ccbe2fdfacc6901be61f.zip |
211536 - RTFTransfer not implemented; code demonstrating NSPasteboard attached
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java index ad35eea470..d0f84bd7d9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Image.java @@ -678,6 +678,7 @@ public static Image cocoa_new(Device device, int type, NSImage nsImage) { image.type = type; image.handle = nsImage; NSImageRep rep = nsImage.bestRepresentationForDevice(null); + rep.retain(); if (rep.isKindOfClass(NSBitmapImageRep.static_class())) { image.imageRep = new NSBitmapImageRep(rep.id); } |