From 28eba8ed430b94be39d5b00fe5afcebab7b8f795 Mon Sep 17 00:00:00 2001 From: TheKodeToad Date: Fri, 15 May 2026 13:01:41 +0100 Subject: [PATCH] Fix memory leak and crash with data packs modal Signed-off-by: TheKodeToad --- launcher/ui/pages/instance/WorldListPage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/launcher/ui/pages/instance/WorldListPage.cpp b/launcher/ui/pages/instance/WorldListPage.cpp index e56e9c731..24c880429 100644 --- a/launcher/ui/pages/instance/WorldListPage.cpp +++ b/launcher/ui/pages/instance/WorldListPage.cpp @@ -259,6 +259,7 @@ void WorldListPage::on_actionData_Packs_triggered() dialog->setLayout(layout); + dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->exec(); APPLICATION->settings()->set("DataPackDownloadGeometry", dialog->saveGeometry().toBase64());