summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2019-04-21 23:46:48 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:46:48 +0900
commite53303b9298bc47bd864caea6725ff09c5c6e6bb (patch)
tree1e977a598d0ff22b61e8c954f994be2f32dcc572
parent4d223dc2195a80f8f5bfa67dd9c050f36421500c (diff)
downloadtdepim-e53303b9298bc47bd864caea6725ff09c5c6e6bb.zip
tdepim-e53303b9298bc47bd864caea6725ff09c5c6e6bb.tar.gz
Bugfix: KMail: Detach from message observation when destructing KMReaderWin
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
-rw-r--r--kmail/kmreaderwin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp
index 6c5acd1..b3c4357 100644
--- a/kmail/kmreaderwin.cpp
+++ b/kmail/kmreaderwin.cpp
@@ -780,6 +780,9 @@ void KMReaderWin::slotCycleAttachmentStrategy() {
//-----------------------------------------------------------------------------
KMReaderWin::~KMReaderWin()
{
+ if (message()) {
+ message()->detach( this );
+ }
clearBodyPartMementos();
delete mHtmlWriter; mHtmlWriter = 0;
delete mCSSHelper;