diff options
author | 2015-06-01 20:41:47 +0900 | |
---|---|---|
committer | 2015-06-01 20:42:01 +0900 | |
commit | 4a24d0aa5473db515cab38f28bc6dc1118eaebe0 (patch) | |
tree | fe31de191d6318a62142be628d8bd18e9cf2ba0d /src/async | |
parent | 89e257f01052a67a6722e969c8766c24f790ae08 (diff) |
Various fixes, made HTMLCleaner public, added URL encoder
Diffstat (limited to 'src/async')
-rwxr-xr-x | src/async/imap/MCIMAPAsyncSession.cpp | 1 | ||||
-rw-r--r-- | src/async/nntp/MCNNTPFetchArticleOperation.cpp | 4 | ||||
-rw-r--r-- | src/async/nntp/MCNNTPFetchHeaderOperation.cpp | 2 | ||||
-rw-r--r-- | src/async/nntp/MCNNTPFetchServerTimeOperation.cpp | 1 | ||||
-rw-r--r-- | src/async/nntp/MCNNTPListNewsgroupsOperation.cpp | 3 | ||||
-rw-r--r-- | src/async/smtp/MCSMTPOperation.cpp | 1 |
6 files changed, 12 insertions, 0 deletions
diff --git a/src/async/imap/MCIMAPAsyncSession.cpp b/src/async/imap/MCIMAPAsyncSession.cpp index d9fb38d5..ab1bbd95 100755 --- a/src/async/imap/MCIMAPAsyncSession.cpp +++ b/src/async/imap/MCIMAPAsyncSession.cpp @@ -73,6 +73,7 @@ IMAPAsyncSession::IMAPAsyncSession() mDispatchQueue = dispatch_get_main_queue(); #endif mGmailUserDisplayName = NULL; + mQueueRunning = false; } IMAPAsyncSession::~IMAPAsyncSession() diff --git a/src/async/nntp/MCNNTPFetchArticleOperation.cpp b/src/async/nntp/MCNNTPFetchArticleOperation.cpp index 1df0dc33..5ebe1a81 100644 --- a/src/async/nntp/MCNNTPFetchArticleOperation.cpp +++ b/src/async/nntp/MCNNTPFetchArticleOperation.cpp @@ -17,10 +17,14 @@ NNTPFetchArticleOperation::NNTPFetchArticleOperation() { mMessageIndex = 0; mData = NULL; + mGroupName = NULL; + mMessageID = NULL; } NNTPFetchArticleOperation::~NNTPFetchArticleOperation() { + MC_SAFE_RELEASE(mMessageID); + MC_SAFE_RELEASE(mGroupName); MC_SAFE_RELEASE(mData); } diff --git a/src/async/nntp/MCNNTPFetchHeaderOperation.cpp b/src/async/nntp/MCNNTPFetchHeaderOperation.cpp index 386dc142..a1ca2b6a 100644 --- a/src/async/nntp/MCNNTPFetchHeaderOperation.cpp +++ b/src/async/nntp/MCNNTPFetchHeaderOperation.cpp @@ -18,10 +18,12 @@ NNTPFetchHeaderOperation::NNTPFetchHeaderOperation() { mMessageIndex = 0; mHeader = NULL; + mGroupName = NULL; } NNTPFetchHeaderOperation::~NNTPFetchHeaderOperation() { + MC_SAFE_RELEASE(mGroupName); MC_SAFE_RELEASE(mHeader); } diff --git a/src/async/nntp/MCNNTPFetchServerTimeOperation.cpp b/src/async/nntp/MCNNTPFetchServerTimeOperation.cpp index 86800733..e71d8722 100644 --- a/src/async/nntp/MCNNTPFetchServerTimeOperation.cpp +++ b/src/async/nntp/MCNNTPFetchServerTimeOperation.cpp @@ -15,6 +15,7 @@ using namespace mailcore; NNTPFetchServerTimeOperation::NNTPFetchServerTimeOperation() { + mTime = -1; } NNTPFetchServerTimeOperation::~NNTPFetchServerTimeOperation() diff --git a/src/async/nntp/MCNNTPListNewsgroupsOperation.cpp b/src/async/nntp/MCNNTPListNewsgroupsOperation.cpp index 3747bacf..c00b1cc3 100644 --- a/src/async/nntp/MCNNTPListNewsgroupsOperation.cpp +++ b/src/async/nntp/MCNNTPListNewsgroupsOperation.cpp @@ -15,6 +15,8 @@ using namespace mailcore; NNTPListNewsgroupsOperation::NNTPListNewsgroupsOperation() { + mListsSuscribed = false; + mGroups = NULL; } NNTPListNewsgroupsOperation::~NNTPListNewsgroupsOperation() @@ -44,5 +46,6 @@ void NNTPListNewsgroupsOperation::main() } else { mGroups = session()->session()->listAllNewsgroups(&error); } + MC_SAFE_RETAIN(mGroups); setError(error); } diff --git a/src/async/smtp/MCSMTPOperation.cpp b/src/async/smtp/MCSMTPOperation.cpp index 9ddcede2..28e1e152 100644 --- a/src/async/smtp/MCSMTPOperation.cpp +++ b/src/async/smtp/MCSMTPOperation.cpp @@ -19,6 +19,7 @@ SMTPOperation::SMTPOperation() { mSession = NULL; mError = ErrorNone; + mSmtpCallback = NULL; } SMTPOperation::~SMTPOperation() |