Hi friends,
I am using shared delegate for getting data on url connection. I getting a memory leak on my code. Can anybody please tell me what i have done wrong. Thanks in advance.
Analyser Warning:
/Users/sathish/Documents/XXX 20100908 ManageMem/Classes/Data Download/XXX DataConnect.m:68:22: warning: Potential leak of an object allocated on line 68 gXXXDataConnect = [[XXXDataConnect alloc] customInit] ;
XXXDataConnect.h
- (XXXDataConnect*)sharedXXXDataConnect;
XXXDataConnect.m
(XXXDataConnect *)sharedXXXDataConnect { if(gXXXDataConnect == nil)
gXXXDataConnect = [[XXXDataConnect alloc] customInit] ;
return gXXXDataConnect ;
}
Regards, sathish