Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a memory leak that popped up when sending messages.

  • Loading branch information...
commit 4a7a6f817c567c9c375ccd11402d2da5765078aa 1 parent 1840b6e
Matt Ronge mronge authored
Showing with 7 additions and 1 deletion.
  1. +4 −0 MailCore.xcodeproj/project.pbxproj
  2. +3 −1 Source/CTMIME.m
4 MailCore.xcodeproj/project.pbxproj
View
@@ -944,6 +944,7 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_SEARCH_PATHS = (
@@ -979,6 +980,7 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COMBINE_HIDPI_IMAGES = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_SEARCH_PATHS = (
@@ -1010,6 +1012,7 @@
1DEB91B208733DA50010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
@@ -1026,6 +1029,7 @@
isa = XCBuildConfiguration;
buildSettings = {
DEAD_CODE_STRIPPING = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
4 Source/CTMIME.m
View
@@ -106,11 +106,13 @@ - (NSString *)render {
int err = 0;
NSString *resultStr;
- mailmime_write_mem(str, &col, [self buildMIMEStruct]);
+ struct mailmime *mime = [self buildMIMEStruct];
+ mailmime_write_mem(str, &col, mime);
err = mmap_string_ref(str);
resultStr = [[NSString alloc] initWithBytes:str->str length:str->len
encoding:NSUTF8StringEncoding];
mmap_string_free(str);
+ mailmime_free(mime);
return [resultStr autorelease];
}
Please sign in to comment.
Something went wrong with that request. Please try again.