zwaldowski/BlocksKit — Issue #64: UIWebView delegate being overreleased
Author: nicked
Created: 2012-01-30 23:40:26+00:00
State: open

I have a custom view controller (WebViewController) that contains a UIWebView, and which is also the delegate of that web view.

Note that while I am using BlocksKit in this project, this UIWebView does not use any BlocksKit extensions.

When the WebViewController is dismissed, regardless of whether the URL had finished loading or not, I get:

*** -[WebViewController release]: message sent to deallocated instance

from AutoreleasePoolPage::pop.

Also note that my project is using ARC, so at no point am I manually releasing anything.

In the dealloc method of my WebViewController, I am setting the UIWebView's delegate to nil, so that shouldn't be causing any problems.

When I exclude UIWebView+BlocksKit.m from the project, everything works fine.

Sorry I don't know how to debug this any better, let me know if there's anything I can try to get you more info.

Cheers,
Nick