aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/WorldList.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-28 02:15:39 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-28 02:15:39 -0700
commita04a6f1e0d0d551506a86964c51e5ce6af5587b4 (patch)
tree8dac30aa1cb3f188a4a0dce5b734c5937068488a /launcher/minecraft/WorldList.cpp
parent37420405c7b5dddb003533e1487ba45a2da5b808 (diff)
downloadPrismLauncher-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.cpp2
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());