• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Does release Really Release?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Does release Really Release?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Jaguar and pre-Jaguar applications
  • Next by Date: Opening Advanced Find Panel...
  • Previous by thread: Re: Passing a "record" to an AppleScript subroutine
  • Next by thread: Re: Does release Really Release?
  • Index(es):
    • Date
    • Thread