Workaround / Fix crash of email cert dlg on Win

Somehow deleting this dialog here crashes on windows a bit
later. As a workaround / fix we don't delete it here but
rely instead on the deletion when the parent window is deleted.

GnuPG-Bug-Id: 3544
parent 25f4e033
......@@ -348,7 +348,12 @@ private:
// ### switch to key.protocol(), in case proto == UnknownProtocol
break;
}
#ifndef Q_OS_WIN
// This leads to a crash on Windows. We don't really
// leak memory here anyway because the destruction of the
// dialog happens when the parent (q) is destroyed anyway.
delete dlg;
#endif
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment