Skip to content

Commit

Permalink
fixed release bug for non-arc projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvise Susmel committed Apr 4, 2013
1 parent 09d1e9b commit c1c80f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FPPopoverController.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ -(void)dealloc
SAFE_ARC_RELEASE(_contentView);
SAFE_ARC_RELEASE(_touchView);
self.delegate = nil;

SAFE_ARC_RELEASE(_viewController);
_viewController = nil;

SAFE_ARC_SUPER_DEALLOC();
Expand Down Expand Up @@ -137,7 +139,7 @@ -(id)initWithViewController:(UIViewController*)viewController
_contentView = [[FPPopoverView alloc] initWithFrame:CGRectMake(0, 0,
self.contentSize.width, self.contentSize.height)];

_viewController = viewController;
_viewController = SAFE_ARC_RETAIN(viewController);

[_touchView addSubview:_contentView];

Expand Down

0 comments on commit c1c80f8

Please sign in to comment.