aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async
diff options
context:
space:
mode:
authorGravatar DINH Viet Hoa <hoa@sprw.me>2013-01-21 16:03:57 -0800
committerGravatar DINH Viet Hoa <hoa@sprw.me>2013-01-21 16:03:57 -0800
commit47f2ea3bac15751b763a0ff3a02454a6769af1f6 (patch)
treeeb1cc38298f223aedfce2f71e26e17ac912b3d1b /src/async
parent8a948953484e29ee7f17e3dd90fee352d66373eb (diff)
fixed IMAPAsyncConnection initialization, added helper methods
Diffstat (limited to 'src/async')
-rw-r--r--src/async/imap/MCIMAPAsyncConnection.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/async/imap/MCIMAPAsyncConnection.cc b/src/async/imap/MCIMAPAsyncConnection.cc
index a72fa1b0..a4f06fbc 100644
--- a/src/async/imap/MCIMAPAsyncConnection.cc
+++ b/src/async/imap/MCIMAPAsyncConnection.cc
@@ -35,10 +35,14 @@ IMAPAsyncConnection::IMAPAsyncConnection()
{
mSession = new IMAPSession();
mQueue = new OperationQueue();
+ mDefaultNamespace = NULL;
+ mDelimiter = 0;
+ mLastFolder = NULL;
}
IMAPAsyncConnection::~IMAPAsyncConnection()
{
+ MC_SAFE_RELEASE(mLastFolder);
MC_SAFE_RELEASE(mDefaultNamespace);
MC_SAFE_RELEASE(mQueue);
MC_SAFE_RELEASE(mSession);