<p>I have an array <code>NSMutableArray</code> with happy objects. These objects viciously turn on (leak) me whenever I try to clear the array of all the objects and repopulate it.</p>

<p>It's allocated in the init function like so</p>

<pre><code>self.list = [NSMutableArray array];
</code></pre>

<p>The different methods I have used to clear it out include:</p>

<pre><code>self.list = nil;
self.list = [NSMutableArray array];
</code></pre>

<p>and</p>

<pre><code>[self.eventList removeAllObjects];
</code></pre>

<p>Explicitly allocating and releasing the array doesn't work either. The leak ONLY occurs when I try to reset the list.</p>

<p>Am I missing a step when resetting or is this a different problem?</p>

what does your
```
@property
```
declaration look like? are you synthesizing the accessors? If so, you need
```
@property(retain)
```
. I'm assuming that when you say the objects are turning on you, you're referring to a core dump
```
(EXC\_BAD\_ACCESS)
```
.