FPPopover icon indicating copy to clipboard operation
FPPopover copied to clipboard

Doesn't properly release memory

Open ryanmsusa opened this issue 11 years ago • 2 comments

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

ryanmsusa avatar Aug 21 '13 21:08 ryanmsusa

issue #73 may fix this

ryanmsusa avatar Aug 26 '13 20:08 ryanmsusa

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;   

}

hayesbiz1 avatar Jun 04 '14 18:06 hayesbiz1