Hi,
I had the following method returning an object allocated.
So while using the Clang Static Analyzer , It is reporting following bug at return value.
leak returning value.
I had the following method returning an object allocated.
Code:
-(UILabel*)getCustomUILabelObject{
UILabel *lLabel=[[UILabel alloc]initWithFrame:CGRectMake(0,0,320,400)];
return lLabel;
}
-(void)loadView{
UILabel *lCustomUILabel=[self getCustomUILabelObject];
[lCustomUILabel release];
lCustomUILabel=nil;
}
leak returning value.
Last edited: