Does release Really Release?
Does release Really Release?
- Subject: Does release Really Release?
- From: Karl Goiser <email@hidden>
- Date: Wed, 16 Apr 2003 21:24:38 +1000
Hello,
I have a view which iterates over a series of objects, asking them to
draw themselves. The object draw routine allocates NSColor objects
using the colorWithDeviceRed:green:blue:alpha: method (I know this
should not be in the draw method, I'll be moving it out soon - and that
is not the point of this email).
When I look at the memory usage using the ObjectAlloc application, I
get what looks like a memory leak with the bars increasing and
increasing. When I go to look at where this is coming from, I see that
it is the above NSColor method...
Now, I don't retain, release or autorelease them (I tried that, but the
zombie routine stepped in and complained, so I know they aren't
retained).
Can anybody explain what is going on here?
Thanks in advance,
Karl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.