Well, It seems to be a known bug. To solve it just replaced the call to
CIContext *context = [[NSGraphicsContext currentContext] CIContext];
with
CIContext *context=[CIContext contextWithCGContext:
[[NSGraphicsContext currentContext] graphicsPort] options: nil];

On Sun, Apr 27, 2008 at 12:07 AM, Jere Gmail <[EMAIL PROTECTED]> wrote:
> The call is done with click on a toolbar item, so it's not in a thread.
>
>  With the copying and releasing m_image thing you are right. Your way
>  is better. Thanks
>
>  Btw. I found someone with the same problem here, but there must be
>  another answer.
>  http://lists.apple.com/archives/Quartz-dev/2006/Dec/msg00035.html
>
>
>
>  On Sat, Apr 26, 2008 at 11:52 PM, Michael Vannorsdel <[EMAIL PROTECTED]> 
> wrote:
>  > How do you know there's a leak and do you know what type of object is being
>  > leaked?  I don't see any obvious leaks in your code snippet.  If flip_v is
>  > done in a secondary thread and you're not creating an autorelease pool and
>  > draining it, then you could have a leak.  That's my best guess without more
>  > info.
>  >
>  >  Also, I'm curious why you're copying m_image and tossing the original.  It
>  > seems to make more sense to autorelease m_image and use it as the input, 
> not
>  > using a copy.  Same result with less time and memory.
>  >
>  >
>  >
>  >  On Apr 26, 2008, at 2:32 PM, Jere Gmail wrote:
>  >
>  >
>  > > I've an image loaded into memory and I want to flip it. The problem is
>  > > that when I do it some memory is leaked. I've searched and sliced the
>  > > code but can't find where it is. Maybe someone can help. The function
>  > > I call is flip. If I call  flip_v or  needsDisplay only no leak
>  > > happens, but when both are called there is something wrong.
>  > >
>  >
>  >  _______________________________________________
>  >
>  >  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:
>  >  http://lists.apple.com/mailman/options/cocoa-dev/zon7mail%40gmail.com
>  >
>  >  This email sent to [EMAIL PROTECTED]
>  >
>
>
>
>  --
>  http://zon7blog.wordpress.com/
>  And again we fall.
>



-- 
http://zon7blog.wordpress.com/
And again we fall.
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to