mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user