Kaydet (Commit) a14010cb authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: fix leak

üst 41214b71
......@@ -790,7 +790,10 @@ void Desktop::DeInit()
// clear lockfile
if (m_pLockfile != NULL)
m_pLockfile->clean();
{
delete m_pLockfile;
m_pLockfile = NULL;
}
OfficeIPCThread::DisableOfficeIPCThread();
if( pSignalHandler )
......@@ -851,7 +854,12 @@ sal_Bool Desktop::QueryExit()
{
}
if (m_pLockfile != NULL) m_pLockfile->clean();
if (m_pLockfile != NULL)
{
delete m_pLockfile;
m_pLockfile = NULL;
}
}
return bExit;
......@@ -1466,9 +1474,12 @@ sal_uInt16 Desktop::Exception(sal_uInt16 nError)
default:
{
if (m_pLockfile != NULL) {
m_pLockfile->clean();
if (m_pLockfile != NULL)
{
delete m_pLockfile;
m_pLockfile = NULL;
}
if( bRestart )
{
OfficeIPCThread::DisableOfficeIPCThread();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment