From a37bba2521f1f5cde9d5c80e8bdb441734e93fbf Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Thu, 5 Nov 2026 18:51:30 +0100 Subject: [PATCH] Fix double delete of nested layouts in ClearLayout --- lib/utils/layout-helpers.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/utils/layout-helpers.cpp b/lib/utils/layout-helpers.cpp index b34a0979..d5817ede 100644 --- a/lib/utils/layout-helpers.cpp +++ b/lib/utils/layout-helpers.cpp @@ -78,7 +78,6 @@ void ClearLayout(QLayout *layout, int afterIdx) while ((item = layout->takeAt(afterIdx))) { if (item->layout()) { ClearLayout(item->layout()); - delete item->layout(); } DeleteLayoutItemWidget(item); }