Instruments and releasing newLine


#1

I’m a bit confused… I’ve added the [newLine release] but when I run the app in Instruments again, the Living count is still the same as the Overall count. I know the book says to rebuild the app from Xcode and I’ve done that but not seeing any Line objects being released.


#2

Hmmm completely weird. I just ran another compiled app on the iPhone, came back to Instruments and it started working as expected.


#3

It is possible you didn’t rebuild the project after you added the memory leak. When using Instruments, always build first, then run with performance tool.