mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Prevent crash on restart
This commit is contained in:
parent
790b3382a3
commit
ef7a4288ae
@ -323,6 +323,7 @@ void Application::restart()
|
|||||||
if (m_lockFile) {
|
if (m_lockFile) {
|
||||||
m_lockFile->unlock();
|
m_lockFile->unlock();
|
||||||
delete m_lockFile;
|
delete m_lockFile;
|
||||||
|
m_lockFile = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
exit(RESTART_EXITCODE);
|
exit(RESTART_EXITCODE);
|
||||||
|
Loading…
Reference in New Issue
Block a user