Skip to content
Browse files

Fix for problem with ARC trying to retain a BOOL swizzled return value

  • Loading branch information...
1 parent 0067c25 commit 944ba969a9e618a96fbdfd9634f7f702bfe4cdea @angelolloqui committed Sep 27, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/plugins/dropbox/fixes/AGDBSession.m
View
10 src/plugins/dropbox/fixes/AGDBSession.m
@@ -58,18 +58,18 @@ static BOOL UIApplication_canOpenURL(id self, SEL _cmd, NSURL *url) {
return NO;
}
- return (BOOL)UIApplication_canOpenURL_original(self, _cmd, url);
+ void *ret = (__bridge void *)UIApplication_canOpenURL_original(self, _cmd, url);
+ return (BOOL)ret;
}
static IMP UIApplicationDelegate_handleOpenURL_original;
static BOOL UIApplicationDelegate_handleOpenURL(id self, SEL _cmd, UIApplication *application, NSURL *url, NSString *sourceApplication, id annotation) {
- BOOL handled = NO;
+ void *ret = 0;
if (UIApplicationDelegate_handleOpenURL_original) {
- handled = (BOOL)UIApplicationDelegate_handleOpenURL_original(self, _cmd, application, url, sourceApplication, annotation);
+ ret = (__bridge void *)UIApplicationDelegate_handleOpenURL_original(self, _cmd, application, url, sourceApplication, annotation);
}
-
- return [AGImageCheckerDropboxPlugin handleOpenURL:url] || handled;
+ return [AGImageCheckerDropboxPlugin handleOpenURL:url] || (BOOL) ret;
}
@end

0 comments on commit 944ba96

Please sign in to comment.
Something went wrong with that request. Please try again.