On Dec 7, 2010, at 2:40 AM, Graham Cox wrote:

> On 07/12/2010, at 5:35 PM, Ken Thomases wrote:
> 
>>> gameColumns = [NSArray arrayWithObjects:allColumns count: boardDimension];
> 
> Another issue with this line is that, assuming 'gameColumns' is an instance 
> variable of the object, the array will be autoreleased, leaving the variable 
> pointing at deallocated memory, which will surely crash later.

Yeah.  I got sidetracked by the other issues enough that I didn't even get 
around to considering the memory management problems.  Conrad Shultz addressed 
another, with the TileColumn instances in the allColumns array.

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

This email sent to arch...@mail-archive.com

Reply via email to