From ee32e1230aad4fc91d4965c8541c7e00654e388b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 13 Nov 2010 11:51:03 -0800 Subject: [PATCH 1/1] Slightly more normalized if nesting on decidePolicyForNavigationAction:. --- UICaboodle/BrowserView.mm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 88dc7a4c..769aaed9 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]; + } } } -- 2.45.2