diff --git a/src/nexus.cpp b/src/nexus.cpp index 1aadc87a8..f6826ed4a 100644 --- a/src/nexus.cpp +++ b/src/nexus.cpp @@ -25,7 +25,8 @@ Nexus::Nexus(QObject *parent) : QObject(parent), profile{nullptr}, widget{nullptr}, - androidgui{nullptr} + androidgui{nullptr}, + loginScreen{nullptr} { } @@ -36,6 +37,9 @@ Nexus::~Nexus() #else delete widget; #endif + delete loginScreen; + delete profile; + Settings::getInstance().save(); } void Nexus::start() diff --git a/src/profile.cpp b/src/profile.cpp index 05c78da62..6b71cef9b 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -195,6 +195,7 @@ void Profile::saveToxSave(QByteArray data) assert(ProfileLocker::getCurLockName() == name); QString path = Settings::getSettingsDirPath() + QDir::separator() + name + ".tox"; + qDebug() << "Saving tox save to "<