Fix for System.open_url #115

Merged
merged 1 commit into from Feb 28, 2014
@@ -441,6 +441,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];
@@ -450,6 +451,7 @@ - (void)openDocInteractCommand:(NSString*)url {
- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)docController
{
+ [docController autorelease];
//[docController release];
//docController = nil;
}