Update window.cpp
Fix use after free
This commit is contained in:
@@ -60,9 +60,9 @@ void RWindow::lower() const
|
||||
void RWindow::destroyWindow() {
|
||||
DEBUG(std::format("Destroying window '{}'", this->title));
|
||||
XDestroySubwindows(display, window);
|
||||
DEBUG(std::format("Destroyed window '{}'", title));
|
||||
XDestroyWindow(display, window);
|
||||
delete this;
|
||||
DEBUG(std::format("Destroyed window '{}'", this->title));
|
||||
}
|
||||
|
||||
void RWindow::refresh() {
|
||||
|
Reference in New Issue
Block a user