aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ModFolderModel.h
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/mod/ModFolderModel.h
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/mod/ModFolderModel.h')
-rw-r--r--launcher/minecraft/mod/ModFolderModel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h
index 46f5087f..d337fe29 100644
--- a/launcher/minecraft/mod/ModFolderModel.h
+++ b/launcher/minecraft/mod/ModFolderModel.h
@@ -75,7 +75,7 @@ public:
Enable,
Toggle
};
- ModFolderModel(const QString &dir, std::shared_ptr<const BaseInstance> instance, bool is_indexed = false, bool create_dir = true);
+ ModFolderModel(const QString &dir, BaseInstance* instance, bool is_indexed = false, bool create_dir = true);
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;