1

Is there a way to know the objects that are marked for releasing inside an NSAutoreleasePool.

shreyasva
  • 13,126
  • 25
  • 78
  • 101

1 Answers1

2

No. Not to my knowledge, why would you ever want to know this?

Joshua Weinberg
  • 28,598
  • 2
  • 97
  • 90
  • 1
    i want to check if a particular object is marked for autorelease? – shreyasva Jul 07 '10 at 13:26
  • 1
    i am using code written by someone else and it seems to leak memory returned back from a function, i dont think they have autoreleased the object before returning it. – shreyasva Jul 07 '10 at 18:37
  • 1
    Use the Leaks Instrument to check what it thinks is going on. Don't take wild guesses about this stuff. Using that you can easily see who "owns" the object. – Joshua Weinberg Jul 07 '10 at 18:59