diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-30 12:26:24 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-30 20:11:41 +0200 |
commit | e1e1d99102936b419aac52974f1fdb8be835b0d4 (patch) | |
tree | fd59107990566d0e42f82b16610f60be0a28d19f /logic/BaseInstance.cpp | |
parent | 7cb76788bd5d1aa35ce38122efa4fdba4433d046 (diff) | |
download | MultiMC-e1e1d99102936b419aac52974f1fdb8be835b0d4.tar MultiMC-e1e1d99102936b419aac52974f1fdb8be835b0d4.tar.gz MultiMC-e1e1d99102936b419aac52974f1fdb8be835b0d4.tar.lz MultiMC-e1e1d99102936b419aac52974f1fdb8be835b0d4.tar.xz MultiMC-e1e1d99102936b419aac52974f1fdb8be835b0d4.zip |
Fix java checker crash, some memory leaks
Diffstat (limited to 'logic/BaseInstance.cpp')
-rw-r--r-- | logic/BaseInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/BaseInstance.cpp b/logic/BaseInstance.cpp index c7b29548..5fa62593 100644 --- a/logic/BaseInstance.cpp +++ b/logic/BaseInstance.cpp @@ -35,7 +35,7 @@ BaseInstance::BaseInstance(BaseInstancePrivate *d_in, const QString &rootDir, : QObject(parent), inst_d(d_in) { I_D(BaseInstance); - d->m_settings = settings_obj; + d->m_settings = std::shared_ptr<SettingsObject>(settings_obj); d->m_rootDir = rootDir; settings().registerSetting("name", "Unnamed Instance"); |