I am trying to reduce memory leaks in my application, so I used tools to find all the leaks. I managed to remove almost all the leaks, except for the very annoying one.
The tools tell me that I have a lot of NSPlaceholderstring leaks. The code that created the leak (according to the tools):
if (nil == storedHash) { NSString *description = [[NSString alloc] initWithFormat:@"1 = %@ 2= %d", uId, service]; self.storedHash = description;
storedHash is defined as follows:
@property(copy) NSString* storedHash;
I tried everything I could think:
- I used save instead of copy
- I used automatic selection NSString (stringWithFormat)
- I tried wrapping the code with the autoplay pool
None of the above has changed the leak. (In some cases, the type of leaks varies, but there are still leaks)
Anyone ideas?
source share