mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-27 08:45:18 -04:00
Prevent crash on restart
This commit is contained in:
parent
790b3382a3
commit
ef7a4288ae
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue