FPPopover
FPPopover copied to clipboard
Doesn't properly release memory
If you run with instruments, memory allocs keep going up with each pop over displayed. They never go back down :(
Seems too hard for me to debug
issue #73 may fix this
FWIW, I managed to fix the leak by changing the following in FPPopupController.m:
-(void)dismissPopover
{
[_contentView removeFromSuperview];
[_touchView removeFromSuperview];
[self.view removeFromSuperview];
if([self.delegate respondsToSelector:@selector(popoverControllerDidDismissPopover:)])
{
[self.delegate popoverControllerDidDismissPopover:self];
}
self.view = nil;
_window=nil;
_parentView=nil;
_contentView = nil;
_touchView = nil;
}