I am working on an app and am having a problem with a memory leak (according to instruments) and I could use a hand as I am not too great with knowing exactly when to release something.
I've narrowed down the source of the leak to one class and who ever feels up for the challenge of helping me I will PM them the file and the screenshot of the leak from instruments.
I would greatly appreciate the help from someone. I'm still a noob at this when it comes to memory management. Reply if you are up for the task.
If you double click those leaks, it should show you which line is leaking.
Actually, the instruments tool usually points to the line that originally creates the leaked object, not the offending code.
I suggest running static analysis on your code. In XCode 4, it's in the product menu, and is simply called "analyze." I don't remember where the analyze command was in XCode 3, since XCode 4 is totally, utterly different in every possible way from XCode 3, for no apparent reason.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
Actually, the instruments tool usually points to the line that originally creates the leaked object, not the offending code.
I suggest running static analysis on your code. In XCode 4, it's in the product menu, and is simply called "analyze." I don't remember where the analyze command was in XCode 3, since XCode 4 is totally, utterly different in every possible way from XCode 3, for no apparent reason.
I ran the Clang analyzer and fixed all the errors it pointed out. This error is the one left after the analyzer says is all clear.