Hello Ken! This code is not called from the main thread. We have a different thread for drawing in order to support better fps rate. As you can see, there I no autorelease pool here, however, I tried to wrap this function with autorelease pool as described here:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html Tried to use both [pool release] and [pool drain]. Had no effect. Regards Dany -----Original Message----- From: Ken Thomases [mailto:k...@codeweavers.com] Sent: Monday, February 10, 2014 19:45 To: Dany Golubitsky Cc: cocoa-dev@lists.apple.com; Shai Shasag Subject: Re: NSGraphicsContext graphicsContextWithBitmapImageRep - Memory leak On Feb 10, 2014, at 11:08 AM, Dany Golubitsky wrote: > To make it simple - here is the entire code: ... Is this code being called on the main thread? On a background thread? Are you sure there's an autorelease pool in place and that it is being drained on a regular basis? Is anything logged to the console? Regards, Ken _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com