diff options
Diffstat (limited to 'Userland/Services/WindowServer')
-rw-r--r-- | Userland/Services/WindowServer/Window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index 722e11495c..d0eaa7a603 100644 --- a/Userland/Services/WindowServer/Window.cpp +++ b/Userland/Services/WindowServer/Window.cpp @@ -898,6 +898,9 @@ void Window::window_menu_activate_default() void Window::request_close() { + if (is_destroyed()) + return; + Event close_request(Event::WindowCloseRequest); event(close_request); } |