From 3c770013d7233cb0a803251af54c0a2c1fb61e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 15 Dec 2021 12:00:51 +0100 Subject: [PATCH] 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 --- lang/qt/src/job.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/qt/src/job.cpp b/lang/qt/src/job.cpp index be637a6d..79951481 100644 --- a/lang/qt/src/job.cpp +++ b/lang/qt/src/job.cpp @@ -105,6 +105,7 @@ QGpgME::Job::Job(QObject *parent) QGpgME::Job::~Job() { + ::d_func()->erase(this); } QString QGpgME::Job::auditLogAsHtml() const