title: Memory problems with UIWebViews
body: <p>I have a webviewcontroller, which I create one instance of, and then I change the request, and show the webview based on which row is selected in a tableview.</p>
  
  <pre><code>// Replace tableView:didSelectRowAtIndexPath with the following
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath
  {
  
  CGRect rect = self.view.frame;
  CGFloat width = [UIScreen mainScreen].bounds.size.width;
  CGFloat height = [UIScreen mainScreen].bounds.size.height;
  rect.size.width = width; //self.view.frame.size.width;
  rect.size.height = height; //self.view.frame.size.height;
  RSSEntry *entry = [_allEntries objectAtIndex:indexPath.row];
  
  page = [[WebViewController alloc] initWithUrl:entry.articleUrl];
  page.view.frame = rect;
  [self.view addSubview:page.view];
  
  }
  </code></pre>
  
  <p>My problem is, that after loading a few of these, I get memory warnings and crash. </p>
  
  <p>In another tab, I also have a webview which loads a google map when the tab loads. This crashes the app almost as soon as it is loaded. </p>
  
  <p>Since I am only making one instance of each, I don't see why this problem is happening. Previously I created a new webviewcontroller each time, and then released it, but I had the same problem.</p>
  
  <p>Here is the code to load the Google map:</p>
  
  <pre><code>@interface MapViewController : UIViewController {
      IBOutlet UIWebView *mapPage;
  }
  
  // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
  - (void)viewDidLoad {
  url_string = @"http://maps.google.fr/maps/ms?msa=0&amp;msid=213119412551786463007.0004b3fb7f4c123377402&amp;z=12";
  url = [NSURL URLWithString:url_string];
  request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:url_string]];
  [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
  mapPage.scalesPageToFit = YES;
  mapPage.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
  [mapPage loadRequest:request];
  [super viewDidLoad];
  }
  </code></pre>
  
  <p>The UIWebView is created in interface builder.</p>
  
  <p>It runs out of memory and crashes right after the map is finished loading, or as soon as you try to interact with the map. It appears to be the very same problem as above, but this time there are no tabs, or no changing the request that the UIWebView uses.</p>