Re: Leaking CGColor objects
Re: Leaking CGColor objects
- Subject: Re: Leaking CGColor objects
- From: DKJ <email@hidden>
- Date: Sun, 26 Oct 2008 13:06:02 -0700
I'm still puzzled. When I put this:
self.foregroundColor = nil;
in my layer's dealloc method, I get this error:
attempting to modify layer that is being finalized
But if I don't put that line in dealloc, Instruments doesn't detect
any leaks.
In the documentation, the foregroundColor property is defined like this:
@property CGColorRef foregroundColor
There's no retain parameter.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden