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/MinecraftInstance.h | |
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/MinecraftInstance.h')
-rw-r--r-- | launcher/minecraft/MinecraftInstance.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/launcher/minecraft/MinecraftInstance.h b/launcher/minecraft/MinecraftInstance.h index a75fa481..068b3008 100644 --- a/launcher/minecraft/MinecraftInstance.h +++ b/launcher/minecraft/MinecraftInstance.h @@ -115,14 +115,14 @@ public: std::shared_ptr<PackProfile> getPackProfile() const; ////// Mod Lists ////// - std::shared_ptr<ModFolderModel> loaderModList() const; - std::shared_ptr<ModFolderModel> coreModList() const; - std::shared_ptr<ModFolderModel> nilModList() const; - std::shared_ptr<ResourcePackFolderModel> resourcePackList() const; - std::shared_ptr<TexturePackFolderModel> texturePackList() const; - std::shared_ptr<ShaderPackFolderModel> shaderPackList() const; - std::shared_ptr<WorldList> worldList() const; - std::shared_ptr<GameOptions> gameOptionsModel() const; + std::shared_ptr<ModFolderModel> loaderModList(); + std::shared_ptr<ModFolderModel> coreModList(); + std::shared_ptr<ModFolderModel> nilModList(); + std::shared_ptr<ResourcePackFolderModel> resourcePackList(); + std::shared_ptr<TexturePackFolderModel> texturePackList(); + std::shared_ptr<ShaderPackFolderModel> shaderPackList(); + std::shared_ptr<WorldList> worldList(); + std::shared_ptr<GameOptions> gameOptionsModel(); ////// Launch stuff ////// Task::Ptr createUpdateTask(Net::Mode mode) override; |