diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-13 11:51:03 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-15 14:39:12 -0800 |
commit | ee32e1230aad4fc91d4965c8541c7e00654e388b (patch) | |
tree | f6e77912bd0a122900ad3b54743a576c0b38fb01 /UICaboodle | |
parent | cb94ff21c2f28eca81ac976f593e53c5e6c5b3bb (diff) |
Slightly more normalized if nesting on decidePolicyForNavigationAction:.
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.mm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 88dc7a4..769aaed 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -564,13 +564,15 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se NSLog(@"decidePolicyForNavigationAction:%@ request:%@ frame:%@", action, request, frame); #endif - if (!error_ && [frame parentFrame] == nil) { - if (request_ != nil) - [request_ autorelease]; - if (request == nil) - request_ = nil; - else - request_ = [request retain]; + if ([frame parentFrame] == nil) { + if (!error_) { + if (request_ != nil) + [request_ autorelease]; + if (request == nil) + request_ = nil; + else + request_ = [request retain]; + } } } |