Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2020-06-20 01:25:59 +0300
committerJonathan White <support@dmapps.us>2020-06-20 04:24:43 +0300
commit736df7696fc3e995b3dbc8a7f0338f7c31b6dde4 (patch)
tree433b04dc1e527d5c2a471573d8f18fb85043bfed /tests
parentc46f3d37b1e8413ff8b97eccf314ec9e098f0acc (diff)
FDO Secrets: Fix double free on exit
* Prevent double free due to QObject cleanup happening before/after the ExtraPage storing the QSharedPointer to FdoSecretsPlugin is deleted. * Fixes #4877
Diffstat (limited to 'tests')
-rw-r--r--tests/gui/TestGuiFdoSecrets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gui/TestGuiFdoSecrets.cpp b/tests/gui/TestGuiFdoSecrets.cpp
index deccc26d3..9dffa6ba5 100644
--- a/tests/gui/TestGuiFdoSecrets.cpp
+++ b/tests/gui/TestGuiFdoSecrets.cpp
@@ -200,7 +200,7 @@ void TestGuiFdoSecrets::initTestCase()
m_mainWindow.reset(new MainWindow());
m_tabWidget = m_mainWindow->findChild<DatabaseTabWidget*>("tabWidget");
QVERIFY(m_tabWidget);
- m_plugin = m_mainWindow->findChild<FdoSecretsPlugin*>();
+ m_plugin = FdoSecretsPlugin::getPlugin();
QVERIFY(m_plugin);
m_mainWindow->show();