Well if you are really stuck and the program is complex (or abstracted, in the case of ARC), you can bring out the cannons:
- Open your Xcode project
- Choose the executable (if needed)
- Press
cmd+i
(Profile)
- Choose the 'Leaks' Instrument in Le Wizard (if needed)
- Press Return to begin profiling
- Exercise your app
- Press 'Stop' in Instruments
- Verify the 'Allocations' instrument is selected
- Click and Hold the Popup Button named 'Statistics'
- Select the Objects List item
- Locate the allocation you are interested in, among the records in the Objects List
- Select that allocation/object
- Click the 'detail arrow' to the right of the address in the table view cell of that allocation
- Now you see all events related to the allocation (allocation, free, reference count operations)
- Press
cmd+shift+e
for Extended Detail
- Go through the events in this list, and locate the imbalance you seek.