Home GnuPG
Diffusion GpgOL 8455a9ec1d3d

Fix potential crash on close

Description

Fix potential crash on close

* src/mail.cpp (Mail::closeAllMails_o): Check if
Mail is still valid after inspector close.

If Outlook holds no other references to a Mail e.g. if it
is opened in its own window (inspector) and the view in the
message list is disabled it can be enough to delete the
mail object to close the inspector.

In that case we still caled "mail->close" on an object
which was already deleted.

Details

Provenance
aheineckeAuthored on Dec 20 2019, 1:04 PM
Parents
rObbd6f516545d: Fix check for plain text attachments
Branches
Unknown
Tags
Unknown
Tasks
T4787: GpgOL: Crash on exit when viewing S/MIME mails in their own window