From 736df7696fc3e995b3dbc8a7f0338f7c31b6dde4 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Fri, 19 Jun 2020 18:25:59 -0400 Subject: 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 --- tests/gui/TestGuiFdoSecrets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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("tabWidget"); QVERIFY(m_tabWidget); - m_plugin = m_mainWindow->findChild(); + m_plugin = FdoSecretsPlugin::getPlugin(); QVERIFY(m_plugin); m_mainWindow->show(); -- cgit v1.2.3