mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
wayland: fix UAF in layershell surface destructor
This commit is contained in:
parent
7feae55ebe
commit
6c9526761c
3 changed files with 18 additions and 2 deletions
|
|
@ -13,6 +13,12 @@
|
|||
#include "shell_integration.hpp"
|
||||
#include "surface.hpp"
|
||||
|
||||
LayershellWindowExtension::~LayershellWindowExtension() {
|
||||
if (this->surface != nullptr) {
|
||||
this->surface->ext = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
LayershellWindowExtension* LayershellWindowExtension::get(QWindow* window) {
|
||||
auto v = window->property("layershell_ext");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue