• 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
Leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Leak


  • Subject: Leak
  • From: John MacMullin <email@hidden>
  • Date: Sun, 03 Jul 2011 09:24:35 -0700

Environment: 'reference' rather than 'garbage collection'.

Instruments tells me that I have a Foundation leak:

Leaked Object,#	Address	Size	Responsible Library	Responsible Frame
Malloc 176 Bytes, 	0x86e290	176	Foundation	-[NSNotificationCenter removeObserver:name:object:]

 0 libSystem.B.dylib calloc
  1 CoreFoundation __addHandler2
  2 Foundation +[__NSObserver isAnObserver:]
  3 Foundation -[NSNotificationCenter removeObserver:name:object:]
  4 Foundation -[NSNotificationCenter removeObserver:]
  5 Foundation -[NSRunLoop(NSRunLoop) dealloc]
  6 CoreFoundation CFRelease
  7 CoreFoundation __CFFinalizeRunLoop
  8 libSystem.B.dylib _pthread_tsd_cleanup
  9 libSystem.B.dylib _pthread_exit
 10 libSystem.B.dylib start_wqthread

I appears to be related to the use of NSNotification, which I use frequently.  As you can see no source code is referenced.

How do I get to the offending code?

Best regards,

John MacMullin

_______________________________________________

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

  • Prev by Date: Re: Dispatch queues and autorelease pools
  • Next by Date: Initial project shell and handling of window pointer
  • Previous by thread: Re: Dispatch queues and autorelease pools
  • Next by thread: Initial project shell and handling of window pointer
  • Index(es):
    • Date
    • Thread