Question: I have a complex App that runs reliably, but I'm puzzled why I need to retain a particular NSArray ('sources') *twice* to prevent a crash (although no exception is reported on the console, but the application crashes and returns to the springboard).

A snippet of the code is included below. There's too much code to paste it all, but you have my word that there are no explicit calls to release the array. 'sources' is an instance variable.

If I only retain the array once (or not at all), I get the crash. With two retains, the App is perfectly stable.

```
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Sources" ofType:@"plist"];

sources  = [[NSArray arrayWithContentsOfFile:plistPath] autorelease];

[sources retain];
[sources retain];

```

Thoughts on why I would need to retain this array *twice* appreciated. Thanks in advance.

Answer: 
Is it something to do with that autorelease? I can't see why that's there: it should be the factory method that autoreleases. Although I don't know what the consequence of adding an extra autorelease is, it might be worth seeing what happens if you take that out along with one of the retains.
```
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Sources" ofType:@"plist"];

sources  = [[NSArray alloc] initWithContentsOfFile:plistPath];

```