diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-28 02:15:39 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-28 02:15:39 -0700 |
commit | a04a6f1e0d0d551506a86964c51e5ce6af5587b4 (patch) | |
tree | 8dac30aa1cb3f188a4a0dce5b734c5937068488a /launcher/minecraft/WorldList.cpp | |
parent | 37420405c7b5dddb003533e1487ba45a2da5b808 (diff) | |
download | PrismLauncher-a04a6f1e0d0d551506a86964c51e5ce6af5587b4.tar.gz PrismLauncher-a04a6f1e0d0d551506a86964c51e5ce6af5587b4.tar.bz2 PrismLauncher-a04a6f1e0d0d551506a86964c51e5ce6af5587b4.zip |
fix(memory leak): don't give shared pointers out to foldermodels (causes cyclic refrence)
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/WorldList.cpp')
-rw-r--r-- | launcher/minecraft/WorldList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/WorldList.cpp b/launcher/minecraft/WorldList.cpp index df6b4ecc..0feee299 100644 --- a/launcher/minecraft/WorldList.cpp +++ b/launcher/minecraft/WorldList.cpp @@ -45,7 +45,7 @@ #include <QFileSystemWatcher> #include <QDebug> -WorldList::WorldList(const QString &dir, std::shared_ptr<const BaseInstance> instance) +WorldList::WorldList(const QString &dir, BaseInstance* instance) : QAbstractListModel(), m_instance(instance), m_dir(dir) { FS::ensureFolderPathExists(m_dir.absolutePath()); |