Commit 4e042174 authored by mjs's avatar mjs
Browse files

Fix world leak I introduced, and also add an early return when needed.

        * WebView.subproj/WebFramePrivate.m:
        (-[WebFrame _invalidatePendingPolicyDecisionCallingDefaultAction:]):
        (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ab1f48ef
2002-11-15 Maciej Stachowiak <mjs@apple.com>
Fix world leak I introduced, and also add an early return when needed.
* WebView.subproj/WebFramePrivate.m:
(-[WebFrame _invalidatePendingPolicyDecisionCallingDefaultAction:]):
(-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
2002-11-15 Maciej Stachowiak <mjs@apple.com>
 
Make navigation policy asynchronous for real.
......
2002-11-15 Maciej Stachowiak <mjs@apple.com>
Fix world leak I introduced, and also add an early return when needed.
* WebView.subproj/WebFramePrivate.m:
(-[WebFrame _invalidatePendingPolicyDecisionCallingDefaultAction:]):
(-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
2002-11-15 Maciej Stachowiak <mjs@apple.com>
 
Make navigation policy asynchronous for real.
......
......@@ -938,8 +938,8 @@ - (void) _invalidatePendingPolicyDecisionCallingDefaultAction:(BOOL)call
[target performSelector:selector withObject:(id)NO withObject:request];
}
[_private->policyRequest release];
[_private->policyTarget release];
[request release];
[target release];
}
- (void)_checkNavigationPolicyForRequest:(WebResourceRequest *)request dataSource:(WebDataSource *)dataSource andCall:(id)target withSelector:(SEL)selector
......@@ -953,6 +953,7 @@ - (void)_checkNavigationPolicyForRequest:(WebResourceRequest *)request dataSourc
// Don't ask more than once for the same request
if ([request isEqual:[dataSource _lastCheckedRequest]]) {
[target performSelector:selector withObject:(id)YES withObject:request];
return;
}
[dataSource _setLastCheckedRequest:request];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment