Fix segfault on Tails

This commit is contained in:
thotbot
2019-07-18 13:22:38 +00:00
parent 705439c78b
commit ba33649d7e
2 changed files with 3 additions and 2 deletions

View File

@@ -147,7 +147,8 @@ void MoneroSettings::reset()
{
if (this->m_initialized && this->m_settings && !this->m_changedProperties.isEmpty())
this->store();
delete this->m_settings;
if (this->m_settings)
delete this->m_settings;
}
void MoneroSettings::store()