diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-07-04 01:10:31 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:57:53 +0300 |
commit | 0565f3435ed04766cc316de648e735c3e4deb359 (patch) | |
tree | ee879fee00e8d51a6c9f253acd46a7bc1636bf58 /iphone | |
parent | 6bbd9a3639be95579e4f9ddab77569db477f3746 (diff) |
[iOS] memory management fix
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/PlacePreviewViewController.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/PlacePreviewViewController.mm b/iphone/Maps/Classes/PlacePreviewViewController.mm index d8c4ec452d..f079e2e07c 100644 --- a/iphone/Maps/Classes/PlacePreviewViewController.mm +++ b/iphone/Maps/Classes/PlacePreviewViewController.mm @@ -140,7 +140,7 @@ typedef enum {APIPOINT, POI, MYPOSITION} Type; { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ApiReturnCell"] autorelease]; cell.textLabel.textAlignment = NSTextAlignmentCenter; - UIButton * tmp = [[UIButton buttonWithType:UIButtonTypeRoundedRect] autorelease]; + UIButton * tmp = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [tmp setTitle:@"tmp" forState:UIControlStateNormal]; cell.textLabel.font = tmp.titleLabel.font; cell.textLabel.textColor = tmp.titleLabel.textColor; |