# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1303448219 0 # Node ID 2ab67f71b50f35281ca25a8dfe96f266af91d194 # Parent 6b400a0f5f70c8df50b4cb5565f7cc003cbd6a90 I guess the retains aren't needed on the NSBitmapImageReps on the Mac. This should fix the memory leak I think. diff -r 6b400a0f5f70 -r 2ab67f71b50f mac/dw.m --- 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; }