Commit 64804a64 authored by Michael Reeves's avatar Michael Reeves

Don't attempt to free nullptr in SourceData::FileData::reset()

parent 976f239e
Pipeline #14822 passed with stage
in 9 minutes and 10 seconds
......@@ -215,8 +215,11 @@ bool SourceData::isBinaryEqualWith(const SourceData& other) const
void SourceData::FileData::reset()
{
delete[](char*) m_pBuf;
m_pBuf = nullptr;
if(m_pBuf != nullptr)
{
delete[](char*) m_pBuf;
m_pBuf = nullptr;
}
m_v.clear();
m_size = 0;
m_vSize = 0;
......
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