Skip to content

Commit

Permalink
Merge pull request gpambrozio#9 from mwhuss/master
Browse files Browse the repository at this point in the history
Fixed Memory Leak
  • Loading branch information
gpambrozio committed Feb 26, 2012
2 parents 8a1b76e + ba8cf50 commit 43de9fa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ - (id)initWithTitle:(NSString *)title message:(NSString *)message defaultText:(N
self = [super initWithTitle:title message:message];

if (self) {
UITextField *theTextField = [[UITextField alloc] initWithFrame:CGRectMake(kTextBoxHorizontalMargin, _height, _view.bounds.size.width - kTextBoxHorizontalMargin * 2, kTextBoxHeight)];
UITextField *theTextField = [[[UITextField alloc] initWithFrame:CGRectMake(kTextBoxHorizontalMargin, _height, _view.bounds.size.width - kTextBoxHorizontalMargin * 2, kTextBoxHeight)] autorelease];

[theTextField setContentVerticalAlignment:UIControlContentVerticalAlignmentCenter];
[theTextField setAutocapitalizationType:UITextAutocapitalizationTypeWords];
Expand Down

0 comments on commit 43de9fa

Please sign in to comment.