My problem is there is a memory leak in my application even though i am doing everything right. I am allocing a local uipickerviw, assign that to class member(pickerview) then i dealloc the local uipickerview. still i get a memory leak. i dnt understand y. somebody plz help me.
UIImagePickerController *the_pImagePicker=[[UIImagePickerController alloc] init];
//memory leak is displayed on this line.
self.m_pImagePicker = the_pImagePicker;
self.m_pImagePicker.delegate = self;
[the_pImagePicker release];