Is there a way to know the objects that are marked for releasing inside an NSAutoreleasePool.
Asked
Active
Viewed 451 times
1 Answers
2
No. Not to my knowledge, why would you ever want to know this?

Joshua Weinberg
- 28,598
- 2
- 97
- 90
-
1i want to check if a particular object is marked for autorelease? – shreyasva Jul 07 '10 at 13:26
-
1i 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
-
1Use 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