diff options
author | David Llewellyn-Jones <david.llewellyn-jones@jolla.com> | 2020-01-17 16:20:28 +0200 |
---|---|---|
committer | Chris Adams <chris.adams@qinetic.com.au> | 2021-04-09 13:35:29 +1000 |
commit | 089923e20bd33d000d5af85ec55b71f4a5767725 (patch) | |
tree | 4940a77bba2b8bd0228f1dab58a717ba34a56a73 | |
parent | 4ae3201bf07473bf3746b8faf56744055fceffa7 (diff) |
Stop _incomingDataTimer when imapprotocol object is destroyed
A crash occurs in case the timer is active and the object is destroyed.
Created by Valério Valério <valerio.valerio@jolla.com>, 23 Feb 2015.
Change-Id: I95725448eff61a9e51eff0c5dd8fe0e33b971b08
Reviewed-by: Christopher Adams <chris.adams@jolla.com>
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
-rw-r--r-- | src/plugins/messageservices/imap/imapprotocol.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/messageservices/imap/imapprotocol.cpp b/src/plugins/messageservices/imap/imapprotocol.cpp index 7484889e..eeec79a0 100644 --- a/src/plugins/messageservices/imap/imapprotocol.cpp +++ b/src/plugins/messageservices/imap/imapprotocol.cpp @@ -3025,6 +3025,7 @@ ImapProtocol::ImapProtocol() ImapProtocol::~ImapProtocol() { + _incomingDataTimer.stop(); delete _transport; delete _fsm; } |