Memory Leak with NSMutableString appendString?

If an end tag is missing, you will have a memory leak. It is better to have any allocations in parserDidStartDocument: and deallocations in parserDidEndDocument:, as these are guaranteed to be paired. And instead of allocating resultString in didStartElement, you just truncate it there.

I don't think you can know if appendString is using autorelease or not because the method changes it's object rather than returning a new object. In other words, because it's changing itself you're not responsible for it's memory management. You also don't own string so you don't have to release or autorelease it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions