aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/objc/nntp/MCONNTPSession.mm1
-rw-r--r--src/objc/pop/MCOPOPSession.mm1
-rw-r--r--src/objc/smtp/MCOSMTPSession.mm1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/objc/nntp/MCONNTPSession.mm b/src/objc/nntp/MCONNTPSession.mm
index e661eb65..ead237ea 100644
--- a/src/objc/nntp/MCONNTPSession.mm
+++ b/src/objc/nntp/MCONNTPSession.mm
@@ -70,6 +70,7 @@ private:
- (void)dealloc {
MC_SAFE_RELEASE(_loggerBridge);
[_connectionLogger release];
+ _session->setConnectionLogger(NULL);
_session->release();
[super dealloc];
}
diff --git a/src/objc/pop/MCOPOPSession.mm b/src/objc/pop/MCOPOPSession.mm
index 893995a5..61d9320b 100644
--- a/src/objc/pop/MCOPOPSession.mm
+++ b/src/objc/pop/MCOPOPSession.mm
@@ -70,6 +70,7 @@ private:
- (void)dealloc {
MC_SAFE_RELEASE(_loggerBridge);
[_connectionLogger release];
+ _session->setConnectionLogger(NULL);
_session->release();
[super dealloc];
}
diff --git a/src/objc/smtp/MCOSMTPSession.mm b/src/objc/smtp/MCOSMTPSession.mm
index 17dc5057..e0eb2a7d 100644
--- a/src/objc/smtp/MCOSMTPSession.mm
+++ b/src/objc/smtp/MCOSMTPSession.mm
@@ -67,6 +67,7 @@ private:
- (void)dealloc {
MC_SAFE_RELEASE(_loggerBridge);
[_connectionLogger release];
+ _session->setConnectionLogger(NULL);
_session->release();
[super dealloc];
}