Prevent crash on restart

This commit is contained in:
Jonathan White 2020-06-29 08:23:51 -04:00
parent 790b3382a3
commit ef7a4288ae
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -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);