Bugfix: KMail: Detach from message observation when destructing KMReaderWin

Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
pull/23/head
Luke Dashjr 6 years ago committed by Michele Calgaro
parent 4d223dc219
commit e53303b929
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