window: avoid uaf on updateWindow decos

TODO, make these pointers SP to avoid this in the future.

fixes #5909
This commit is contained in:
Vaxry
2024-05-07 16:50:30 +01:00
parent 6ccc22194c
commit 598bbd186b
2 changed files with 3 additions and 0 deletions

View File

@@ -332,6 +332,7 @@ class CWindow {
PHLWINDOWREF m_pLastCycledWindow;
// Window decorations
// TODO: make this a SP.
std::deque<std::unique_ptr<IHyprWindowDecoration>> m_dWindowDecorations;
std::vector<IHyprWindowDecoration*> m_vDecosToRemove;