Skip to content

Commit

Permalink
Fix memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
subdigital committed Feb 23, 2012
1 parent 32afd12 commit 944ceca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHAlertView.m
Expand Up @@ -27,10 +27,10 @@ - (id)initWithTitle:(NSString *)title message:(NSString *)message cancelButtonTe
cancelButtonTitle:cancelButtonText
otherButtonTitles:actionButtonText, nil];
_block = Block_copy(block);

[_alertView show];
}

[_alertView show];

return self;
}

Expand Down
4 changes: 2 additions & 2 deletions CHModalPickerView.m
Expand Up @@ -107,7 +107,7 @@ - (UIView *)backdropView {
backdrop.alpha = 0;
UIGestureRecognizer *tapRecognizer = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapRecognized:)] autorelease];
[backdrop addGestureRecognizer:tapRecognizer];
return backdrop;
return [backdrop autorelease];
}

- (UIPickerView *)picker {
Expand Down Expand Up @@ -136,7 +136,7 @@ - (UIToolbar *)toolbar {
action:@selector(onDone:)] autorelease],
nil];

return toolbar;
return [toolbar autorelease];
}

- (void)presentWithBlock:(CHModalPickerCallBack)callback {
Expand Down

0 comments on commit 944ceca

Please sign in to comment.