title: Strange EXC_BAD_ACCESS with [self dismissModalViewControllerAnimated]
body: <p>In my app, I switch between views modally. My problem is, when I move from the first viewController to the second, it works. When I dismiss the second view for the first time, that also works. Where is the problem, you say? It's coming. When I move from the first viewController to the second a second time, it works again. Just as it should. Yet when I try to dismiss the second viewController the SECOND time, I get an EXC_BAD_ACCESS error on the</p>
  
  <pre><code>[self dismissModalViewControllerAnimated:YES];
  </code></pre>
  
  <p>line.</p>
  
  <p>Why does it crash the second time, but never the first time?</p>
  
  <p>EDIT ONE:</p>
  
  <p>This error happens no matter which viewController I switch to:</p>
  
  <p>If I move from A to B, then back to A, then to B, then try to go back to A: crash
  If I move from A to C, then back to A, then to C, then try to go back to A: crash again</p>
  
  <p>EDIT TWO:</p>
  
  <p>I create/show the view controller with this code:</p>
  
  <pre><code>MapView *controller = [[MapView alloc] initWithNibName:@"MapView" bundle:nil];
  
  controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
  [self presentModalViewController:controller animated:YES];
  </code></pre>
  
  <p>Should I be releasing this object after its creation?</p>
  
  <p>Problem solved. Offending line of code was being used earlier for the transition I was using before I used modal views, and I forgot to remove it. Win.</p>