title: WebView Memory Management
body: <p>An application that I am developing retains several WebViews that are used to allow an embedded web browsing experience for some activities centralized around the application. The problem that I am having is that after several hours open and after a lot of use the views begin to build up memory. My understanding of the memory management in Objective-C is that once and object is released entirely (retain count = 0) and is deallocated the amount of memory used by the application as a whole goes down. This does not seem to be applying to my situation. </p>
  
  <pre><code>[webviewObject release];
  webviewObject = nil;
  
  webviewObject = [[self createNewViewWithName:name] retain];
  </code></pre>
  
  <p>The above is the code that I am using. I have tried releasing the memory and not creating a new instance but to no luck. Memory usage simply continues to grow and according to Instruments the objects are released entirely. Am I missing something? Could the application be caching some how?</p>