Permalink
Browse files

Merge branch 'master' into develop

  • Loading branch information...
2 parents 0d73a5b + cf17a50 commit c8f3571ecbbea54540c9e1fb20f7be2a831d122e @artgillespie committed Aug 27, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 OGImage/__OGImage.m
View
@@ -89,8 +89,7 @@ - (id)initWithData:(NSData *)data scale:(CGFloat)scale {
// do we have an OGImageDictionary?
_originalFileType = (__bridge NSString *)CGImageSourceGetType(imageSource);
_originalFileAlphaInfo = CGImageGetAlphaInfo(cgImage);
- NSDictionary *propDict = CFBridgingRelease(CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL));
- _originalFileOrientation = [propDict[(__bridge NSString *)kCGImagePropertyOrientation] integerValue];
+ _originalFileOrientation = [_originalFileProperties[(__bridge NSString *)kCGImagePropertyOrientation] integerValue];
self = [super initWithCGImage:cgImage scale:scale orientation:OGEXIFOrientationToUIImageOrientation(_originalFileOrientation)];
CGImageRelease(cgImage);
}

0 comments on commit c8f3571

Please sign in to comment.