Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SMTP memory leak fixes

  • Loading branch information...
commit 8a89fd2fc8ef1e535f35fdb9147a0308f63823d4 1 parent a857dd0
@mronge mronge authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 Source/CTSMTPConnection.m
View
8 Source/CTSMTPConnection.m
@@ -93,6 +93,10 @@ + (BOOL)sendMessage:(CTCoreMessage *)message server:(NSString *)server username:
if (!success) {
goto error;
}
+
+ mailsmtp_quit(smtp);
+ mailsmtp_free(smtp);
+
[smtpObj release];
return YES;
error:
@@ -134,6 +138,10 @@ + (BOOL)canConnectToServer:(NSString *)server username:(NSString *)username pass
goto error;
}
}
+
+ mailsmtp_quit(smtp);
+ mailsmtp_free(smtp);
+
[smtpObj release];
return YES;
error:
Please sign in to comment.
Something went wrong with that request. Please try again.