Potential leakage of an allocated object in the dictionary allocation


NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];

(Value stored to 'dict' during its initialization is never read)

  1. You don't use 'dict'.
  2. You don't release 'dict' after you're done with it. It is leaked because you used 'alloc' to create it, and you own it automatically and hence have to release it when you're done with it.

I suggest learning how Memory Management works on iOS/OS X before continuing further. This is not something you can ignore; you need to learn it.