summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-30 12:26:24 +0200
committerPetr Mrázek <peterix@gmail.com>2014-03-30 20:11:41 +0200
commite1e1d99102936b419aac52974f1fdb8be835b0d4 (patch)
treefd59107990566d0e42f82b16610f60be0a28d19f /logic/BaseInstance.cpp
parent7cb76788bd5d1aa35ce38122efa4fdba4433d046 (diff)
downloadMultiMC-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.cpp2
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");