Permalink
Browse files

SMTP memory leak fixes

  • Loading branch information...
1 parent a857dd0 commit 8a89fd2fc8ef1e535f35fdb9147a0308f63823d4 @mronge mronge committed Nov 9, 2012
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:

0 comments on commit 8a89fd2

Please sign in to comment.