In Instrument-Leaks, the following code increasing Allocation memory always, when ever i am pushing PhotosObj .Releasing PhotosObj is not working.
if (PhotosObj) {
[PhotosObj release];
PhotosObj=nil;
PhotosObj=[[Photos alloc]initWithNibName:@"Photos" bundle:nil];
}
else {
PhotosObj=[[Photos alloc]initWithNibName:@"Photos" bundle:nil];
}
[self.navigationController pushViewController:PhotosObj animated:YES];
Please clarify me.
Thanks in Advance