Skip to content

TransitUIWebViewContext must unbind from webview on dealloc #36

@HBehrens

Description

@HBehrens

at TransitUIWebViewContext dealloc doesn't reset the original delegate to the webview. Something like this should be better:

-(void)dealloc {
    [self unbindFromWebView];
}

-(void)unbindFromWebView {
    [_webView removeObserver:self forKeyPath:@"delegate"];
    _webView.delegate = _originalDelegate;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions