1
0
Fork 0

Fix too early stream deletion.

This commit is contained in:
ZehMatt 2018-02-14 15:12:20 +01:00 committed by Duncan Ogilvie
parent cad8aed97d
commit 72ccf42298
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 5 additions and 5 deletions

View File

@ -423,17 +423,17 @@ bool PDBDiaFile::close()
if(m_session == nullptr)
return false;
m_session->Release();
m_dataSource->Release();
m_session = nullptr;
m_dataSource = nullptr;
if(m_stream != nullptr)
{
delete(DiaFileStream*)m_stream;
m_stream = nullptr;
}
m_session->Release();
m_dataSource->Release();
m_session = nullptr;
m_dataSource = nullptr;
return true;
}