Bugfix: KMail: Detach from message observation when destructing KMReaderWin

Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
(cherry picked from commit e53303b929)
r14.0.x
Luke Dashjr 6 years ago committed by Michele Calgaro
parent b7254a04f1
commit 54a0f45587
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -780,6 +780,9 @@ void KMReaderWin::slotCycleAttachmentStrategy() {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
KMReaderWin::~KMReaderWin() KMReaderWin::~KMReaderWin()
{ {
if (message()) {
message()->detach( this );
}
clearBodyPartMementos(); clearBodyPartMementos();
delete mHtmlWriter; mHtmlWriter = 0; delete mHtmlWriter; mHtmlWriter = 0;
delete mCSSHelper; delete mCSSHelper;

Loading…
Cancel
Save