Skip to content

Commit

Permalink
Merge pull request Evernote#85 from igrechuhin/master
Browse files Browse the repository at this point in the history
remove retain cycles
  • Loading branch information
everic committed Feb 10, 2015
2 parents c2c8d85 + d185e58 commit 6af9cfe
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 36 deletions.
2 changes: 2 additions & 0 deletions evernote-sdk-ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "evernote-sdk-ios/evernote-sdk-ios-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
GCC_WARN_SHADOW = NO;
HEADER_SEARCH_PATHS = "${SDKROOT}/usr/include/libxml2";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
OTHER_LDFLAGS = "-ObjC";
Expand All @@ -1669,6 +1670,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "evernote-sdk-ios/evernote-sdk-ios-Prefix.pch";
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_SHADOW = NO;
HEADER_SEARCH_PATHS = "${SDKROOT}/usr/include/libxml2";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
OTHER_LDFLAGS = "-ObjC";
Expand Down
2 changes: 1 addition & 1 deletion evernote-sdk-ios/ENSDK/ENNote.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ - (void)generateWebArchiveData:(ENNoteGenerateWebArchiveDataCompletionHandler)co
}

ENMLUtility * utility = [[ENMLUtility alloc] init];
NSURL * sourceURL = self.sourceUrl ? [NSURL URLWithString:self.sourceUrl] : nil;
[utility convertENMLToHTML:enml withReferencedResources:edamResources completionBlock:^(NSString * html, NSError * error) {
if (!html) {
ENSDKLogInfo(@"+webArchiveData failed to convert ENML to HTML: %@", error);
Expand All @@ -182,7 +183,6 @@ - (void)generateWebArchiveData:(ENNoteGenerateWebArchiveDataCompletionHandler)co

// Create main resource from the HTML.
NSData * htmlData = [html dataUsingEncoding:NSUTF8StringEncoding];
NSURL * sourceURL = self.sourceUrl ? [NSURL URLWithString:self.sourceUrl] : nil;
ENWebResource * mainResource = [[ENWebResource alloc] initWithData:htmlData
URL:sourceURL
MIMEType:@"text/html"
Expand Down

0 comments on commit 6af9cfe

Please sign in to comment.