Skip to content

Commit

Permalink
fix a leak
Browse files Browse the repository at this point in the history
  • Loading branch information
siuying committed Jul 14, 2011
1 parent 0355902 commit b925363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMGridView/Classes/MMGridView.m
Expand Up @@ -124,7 +124,7 @@ - (void)createSubviews
self.contentMode = UIViewContentModeRedraw;
self.backgroundColor = [UIColor clearColor];

self.scrollView = [[UIScrollView alloc] initWithFrame:self.bounds];
self.scrollView = [[[UIScrollView alloc] initWithFrame:self.bounds] autorelease];
self.scrollView.delegate = self;
self.scrollView.backgroundColor = [UIColor clearColor];
self.scrollView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
Expand Down

0 comments on commit b925363

Please sign in to comment.