diff options
Diffstat (limited to 'WebKit/mac/Panels/WebAuthenticationPanel.m')
-rw-r--r-- | WebKit/mac/Panels/WebAuthenticationPanel.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/WebKit/mac/Panels/WebAuthenticationPanel.m b/WebKit/mac/Panels/WebAuthenticationPanel.m index f207d0c..c9442da 100644 --- a/WebKit/mac/Panels/WebAuthenticationPanel.m +++ b/WebKit/mac/Panels/WebAuthenticationPanel.m @@ -218,7 +218,9 @@ - (void)runAsModalDialogWithChallenge:(NSURLAuthenticationChallenge *)chall { [self setUpForChallenge:chall]; + usingSheet = FALSE; + [chall retain]; NSURLCredential *credential = nil; if ([[NSApplication sharedApplication] runModalForWindow:panel] == 0) { @@ -227,6 +229,7 @@ [callback performSelector:selector withObject:chall withObject:credential]; [credential release]; + [chall release]; } - (void)runAsSheetOnWindow:(NSWindow *)window withChallenge:(NSURLAuthenticationChallenge *)chall |