diff options
Diffstat (limited to 'src/ui/window.cpp')
-rw-r--r-- | src/ui/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.cpp b/src/ui/window.cpp index f8e6d4f3..862267fc 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -627,7 +627,7 @@ namespace cru::ui WindowManager::GetInstance()->UnregisterWindow(hwnd_); hwnd_ = nullptr; if (delete_this_on_destroy_) - delete this; + InvokeLater([this]{ delete this; }); } void Window::OnPaintInternal() { |