Committed by
Ben Copsey
Fixed memory leaks
Signed-off-by: Ben Copsey <ben@allseeing-i.com>
Showing
2 changed files
with
3 additions
and
1 deletions
| @@ -79,6 +79,7 @@ NSLock *dialogLock = nil; | @@ -79,6 +79,7 @@ NSLock *dialogLock = nil; | ||
| 79 | [label setTextAlignment:UITextAlignmentCenter]; | 79 | [label setTextAlignment:UITextAlignmentCenter]; |
| 80 | 80 | ||
| 81 | [titleBar addSubview:label]; | 81 | [titleBar addSubview:label]; |
| 82 | + [label release]; | ||
| 82 | [[self loginDialog] addSubview:titleBar]; | 83 | [[self loginDialog] addSubview:titleBar]; |
| 83 | 84 | ||
| 84 | // Setup the toolbar | 85 | // Setup the toolbar |
| @@ -103,6 +104,7 @@ NSLock *dialogLock = nil; | @@ -103,6 +104,7 @@ NSLock *dialogLock = nil; | ||
| 103 | [label setTextAlignment:UITextAlignmentCenter]; | 104 | [label setTextAlignment:UITextAlignmentCenter]; |
| 104 | 105 | ||
| 105 | [toolbar addSubview:label]; | 106 | [toolbar addSubview:label]; |
| 107 | + [label release]; | ||
| 106 | 108 | ||
| 107 | UIBarButtonItem *labelButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:nil action:nil] autorelease]; | 109 | UIBarButtonItem *labelButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:nil action:nil] autorelease]; |
| 108 | [labelButton setCustomView:label]; | 110 | [labelButton setCustomView:label]; |
| @@ -2488,7 +2488,7 @@ static NSRecursiveLock *delegateAuthenticationLock = nil; | @@ -2488,7 +2488,7 @@ static NSRecursiveLock *delegateAuthenticationLock = nil; | ||
| 2488 | // Work around <rdar://problem/5530166>. This dummy call to | 2488 | // Work around <rdar://problem/5530166>. This dummy call to |
| 2489 | // CFNetworkCopyProxiesForURL initialise some state within CFNetwork | 2489 | // CFNetworkCopyProxiesForURL initialise some state within CFNetwork |
| 2490 | // that is required by CFNetworkCopyProxiesForAutoConfigurationScript. | 2490 | // that is required by CFNetworkCopyProxiesForAutoConfigurationScript. |
| 2491 | - (void) CFNetworkCopyProxiesForURL((CFURLRef)theURL, NULL); | 2491 | + CFRelease(CFNetworkCopyProxiesForURL((CFURLRef)theURL, NULL)); |
| 2492 | 2492 | ||
| 2493 | NSStringEncoding encoding; | 2493 | NSStringEncoding encoding; |
| 2494 | NSError *err = nil; | 2494 | NSError *err = nil; |
-
Please register or login to post a comment