FPPopover
FPPopover copied to clipboard
FPPopover leak under ARC
Hi,
Using the Profiler tool I've noticed that the FPPopover view is not released after the popover is nil'ed or dismissed.
My solution was too change the following code fragment from PopoverController.m:
-(id)initWithViewController:(UIViewController*)viewController
delegate:(id<FPPopoverControllerDelegate>)delegate
...
#if __has_feature(objc_arc)
//ARC on
id bself = self;
to
-(id)initWithViewController:(UIViewController*)viewController
delegate:(id<FPPopoverControllerDelegate>)delegate
...
#if __has_feature(objc_arc)
//ARC on
__weak id bself = self;
THANK YOU SO MUCH FOR POSTING A SOLUTION I HAD THE SAME PROBLEM!!!
A leak never occurred for me, live bytes just kept going up though
xfreebird you rock. This memory leak was hard to trace!