qt: Fix erroneous reuse of JobPrivate objects

* lang/qt/src/job.cpp (Job::~Job): Destroy JobPrivate object belonging
to destroyed job.
--

In some tests different Job objects reused the same JobPrivate object
because they were created with the same memory address. Obviously, this
shouldn't happen.

GnuPG-bug-id: 5739
This commit is contained in:
Ingo Klöcker 2021-12-15 12:00:51 +01:00
parent d35d44efaf
commit 3c770013d7

View File

@ -105,6 +105,7 @@ QGpgME::Job::Job(QObject *parent)
QGpgME::Job::~Job()
{
::d_func()->erase(this);
}
QString QGpgME::Job::auditLogAsHtml() const