aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm')
-rwxr-xr-xexample/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm7
1 files changed, 3 insertions, 4 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm b/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
index b60e91c7..dd2b36ee 100755
--- a/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
+++ b/example/ios/iOS UI Test/iOS UI Test/MCTMsgViewController.mm
@@ -251,15 +251,14 @@ typedef void (^DownloadCallback)(NSError * error);
[info setObject:(id) kCFBooleanTrue forKey:(id) kCGImageSourceCreateThumbnailFromImageAlways];
[info setObject:(id) [NSNumber numberWithFloat:(float) IMAGE_PREVIEW_WIDTH] forKey:(id) kCGImageSourceThumbnailMaxPixelSize];
thumbnail = CGImageSourceCreateThumbnailAtIndex(imageSource, 0, (__bridge CFDictionaryRef) info);
- //[info release];
CGImageDestinationRef destination;
NSMutableData * destData = [NSMutableData data];
destination = CGImageDestinationCreateWithData((__bridge CFMutableDataRef) destData,
- + (CFStringRef) @"public.jpeg",
- + 1, NULL);
-
+ (CFStringRef) @"public.jpeg",
+ 1, NULL);
+
CGImageDestinationAddImage(destination, thumbnail, NULL);
CGImageDestinationFinalize(destination);