app crashes when releasing appDelegate instance
<p>i have this code that passes the core data context to one of the controllers.
it was working great for few days, until the debugger started to give me the "not A type release" error and crashing the app.
i have checked the app for leaks and i found leaks from the SappDelegate object. so i understand that i have to release it but it keeping crashing every time i do it.</p>

<p>any ideas
thanks
shani</p>

<pre><code>SAppDelegate *hbad= [[SAppDelegate alloc] init];
NSManagedObjectContext *context = [hbad managedObjectContext];
[hbad release];
if (!context) {
    NSLog(@"problem with mannaged");
}
self.managedObjectContext = context;
</code></pre>
