Closed KelvinQQ closed 10 years ago
An other leak in function (There is an underline before the function.I can't show it.)
- (void)_navigationBarInit;
See it At
LINE // TODO:
if ([self respondsToSelector:@selector(setShadowImage:)])
// TODO:
// Is [self setShadowImage:[[[UIImage alloc] init]] autorelease]; ??
[self setShadowImage:[[UIImage alloc] init]];
UIGraphicsBeginImageContext(CGSizeMake(1.0, 3.0));
CGContextRef context = UIGraphicsGetCurrentContext();
[(UIColor *)[UIColor colorWith8bitWhite:178 alpha:255] set];
CGContextFillRect(context, CGRectMake(.0, 2.0, 1.0, 1.0));
UIImage *backgroundImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[self setBackgroundImage:backgroundImage forBarMetrics:UIBarMetricsDefault];
[self setBackgroundImage:backgroundImage forBarMetrics:UIBarMetricsLandscapePhone];
}
Great point, Thanks. I can't belieave I never run static analyzer for long time.
fixed in 0.9.15
In file UI7NavigationBar.m, it seems that three is a leak in function
// TODO: