mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Fix segfault on Tails
This commit is contained in:
parent
705439c78b
commit
ba33649d7e
2 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue