On 03/08/2010, at 3:46 AM, James Maxwell wrote:

>               continuations = (float*)[aDecoder 
> decodeBytesForKey:@"continuations" returnedLength:&size];


I expect the returned bytes are autoreleased. The docs don't state this 
explicitly, but the similar method -decodeBytesWithReturnedLength: states "If 
you need the bytes beyond the scope of the current autorelease pool, you must 
copy them.".

Try it and see if it solves the issue, sounds like a straightforward memory bug.

--Graham

 _______________________________________________

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 arch...@mail-archive.com

Reply via email to