changeset 919:2ab67f71b50f

I guess the retains aren't needed on the NSBitmapImageReps on the Mac. This should fix the memory leak I think.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 22 Apr 2011 04:56:59 +0000
parents 6b400a0f5f70
children f47d5fa72f84
files mac/dw.m
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Fri Apr 22 04:51:46 2011 +0000
+++ b/mac/dw.m	Fri Apr 22 04:56:59 2011 +0000
@@ -5881,7 +5881,6 @@
                                     colorSpaceName:NSDeviceRGBColorSpace 
                                     bytesPerRow:0 
                                     bitsPerPixel:0];
-    [image retain];
     return pixmap;
 }
 
@@ -5913,7 +5912,6 @@
     pixmap->height = size.height;
     pixmap->image = image;
     pixmap->handle = handle;
-    [image retain];
     return pixmap;
 }
 
@@ -5940,7 +5938,6 @@
     pixmap->height = size.height;
     pixmap->image = image;
     pixmap->handle = handle;
-    [image retain];
     return pixmap;
 }
 
@@ -5982,7 +5979,6 @@
     pixmap->height = size.height;
     pixmap->image = image;
     pixmap->handle = handle;
-    [image retain];
     return pixmap;
 }