Showing
1 changed file
with
2 additions
and
4 deletions
@@ -64,7 +64,7 @@ NSLock *dialogLock = nil; | @@ -64,7 +64,7 @@ NSLock *dialogLock = nil; | ||
64 | 64 | ||
65 | // Setup the title (Couldn't figure out how to put this in the same toolbar as the buttons) | 65 | // Setup the title (Couldn't figure out how to put this in the same toolbar as the buttons) |
66 | UIToolbar *titleBar = [[[UIToolbar alloc] initWithFrame:CGRectMake(0,0,320,30)] autorelease]; | 66 | UIToolbar *titleBar = [[[UIToolbar alloc] initWithFrame:CGRectMake(0,0,320,30)] autorelease]; |
67 | - UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10,0,300,30)]; | 67 | + UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(10,0,300,30)] autorelease]; |
68 | if ([self type] == ASIProxyAuthenticationType) { | 68 | if ([self type] == ASIProxyAuthenticationType) { |
69 | [label setText:@"Login to this secure proxy server."]; | 69 | [label setText:@"Login to this secure proxy server."]; |
70 | } else { | 70 | } else { |
@@ -79,7 +79,6 @@ NSLock *dialogLock = nil; | @@ -79,7 +79,6 @@ NSLock *dialogLock = nil; | ||
79 | [label setTextAlignment:UITextAlignmentCenter]; | 79 | [label setTextAlignment:UITextAlignmentCenter]; |
80 | 80 | ||
81 | [titleBar addSubview:label]; | 81 | [titleBar addSubview:label]; |
82 | - [label release]; | ||
83 | [[self loginDialog] addSubview:titleBar]; | 82 | [[self loginDialog] addSubview:titleBar]; |
84 | 83 | ||
85 | // Setup the toolbar | 84 | // Setup the toolbar |
@@ -89,7 +88,7 @@ NSLock *dialogLock = nil; | @@ -89,7 +88,7 @@ NSLock *dialogLock = nil; | ||
89 | UIBarButtonItem *backButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancelAuthenticationFromDialog:)] autorelease]; | 88 | UIBarButtonItem *backButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancelAuthenticationFromDialog:)] autorelease]; |
90 | [items addObject:backButton]; | 89 | [items addObject:backButton]; |
91 | 90 | ||
92 | - label = [[UILabel alloc] initWithFrame:CGRectMake(0,0,170,50)]; | 91 | + label = [[[UILabel alloc] initWithFrame:CGRectMake(0,0,170,50)] autorelease]; |
93 | if ([self type] == ASIProxyAuthenticationType) { | 92 | if ([self type] == ASIProxyAuthenticationType) { |
94 | [label setText:[[self request] proxyHost]]; | 93 | [label setText:[[self request] proxyHost]]; |
95 | } else { | 94 | } else { |
@@ -104,7 +103,6 @@ NSLock *dialogLock = nil; | @@ -104,7 +103,6 @@ NSLock *dialogLock = nil; | ||
104 | [label setTextAlignment:UITextAlignmentCenter]; | 103 | [label setTextAlignment:UITextAlignmentCenter]; |
105 | 104 | ||
106 | [toolbar addSubview:label]; | 105 | [toolbar addSubview:label]; |
107 | - [label release]; | ||
108 | 106 | ||
109 | UIBarButtonItem *labelButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:nil action:nil] autorelease]; | 107 | UIBarButtonItem *labelButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:nil action:nil] autorelease]; |
110 | [labelButton setCustomView:label]; | 108 | [labelButton setCustomView:label]; |
-
Please register or login to post a comment