From 78672a8405f95adb7e4bf6ecacff97f1a535716e Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 15 Aug 2026 18:52:27 -0700 Subject: [PATCH] x11/panelwindow: avoid using destroyed panel stack after free --- changelog/next.md | 1 + src/x11/panel_window.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/next.md b/changelog/next.md index 1b391f0..237b788 100644 --- a/changelog/next.md +++ b/changelog/next.md @@ -19,3 +19,4 @@ - Fixed crashes when failing to create a `ScreencopyView`. - Fixed `PwNodePeakMonitor` crashing when sampling a stream with mismatched channels from the node. - Fixed unsetting `PopupAnchor.item` causing a crash. +- Fixed hiding the last `PanelWindow` on screen causing a crash under X11. diff --git a/src/x11/panel_window.cpp b/src/x11/panel_window.cpp index c78b548..e8c31c2 100644 --- a/src/x11/panel_window.cpp +++ b/src/x11/panel_window.cpp @@ -57,7 +57,7 @@ public: } // from the bottom up, update all panels - for (auto* panel: panels) { + for (auto* panel: this->mPanels[panel->engineGeneration]) { panel->updateDimensions(); } }