Merge pull request #2294

ba33649 Fix segfault on Tails (tobtoht)
This commit is contained in:
luigi1111 2019-07-22 13:11:15 -05:00
commit 4775fd74b8
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
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()

View file

@ -72,7 +72,7 @@ private:
void store();
QHash<const char *, QVariant> m_changedProperties;
QSettings *m_settings;
QSettings *m_settings = NULL;
QString m_fileName = QString("");
bool m_initialized = false;
int m_timerId = 0;