Permalink
Browse files

Merge pull request #115 from nhinze/patch-4

Fix for System.open_url
  • Loading branch information...
2 parents 8107b89 + f335e88 commit 565d34f0abc7e744f179a3d9b811740a1ba247de @dmitrys dmitrys committed Feb 28, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 platform/iphone/Classes/AppManager/AppManager.m
View
2 platform/iphone/Classes/AppManager/AppManager.m
@@ -443,6 +443,7 @@ - (void)openDocInteractCommand:(NSString*)url {
BOOL result = [docController presentPreviewAnimated:YES];
if (!result) {
+ [docController retain];
CGPoint centerPoint = [Rhodes sharedInstance].window.center;
CGRect centerRec = CGRectMake(centerPoint.x, centerPoint.y, 0, 0);
BOOL isValid = [docController presentOpenInMenuFromRect:centerRec inView:[Rhodes sharedInstance].window animated:YES];
@@ -452,6 +453,7 @@ - (void)openDocInteractCommand:(NSString*)url {
- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)docController
{
+ [docController autorelease];
//[docController release];
//docController = nil;
}

0 comments on commit 565d34f

Please sign in to comment.