mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-14 11:35:46 -07:00
window: avoid uaf on updateWindow decos
TODO, make these pointers SP to avoid this in the future. fixes #5909
This commit is contained in:
@@ -211,6 +211,8 @@ void CWindow::updateWindowDecos() {
|
||||
}
|
||||
|
||||
for (auto& wd : decos) {
|
||||
if (std::find_if(m_dWindowDecorations.begin(), m_dWindowDecorations.end(), [wd](const auto& other) { return other.get() == wd; }) == m_dWindowDecorations.end())
|
||||
continue;
|
||||
wd->updateWindow(m_pSelf.lock());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user