aboutsummaryrefslogtreecommitdiff
path: root/src/osx/gui/Window.mm
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-14 21:58:14 +0800
committercrupest <crupest@outlook.com>2021-10-14 21:58:14 +0800
commitd3e2a751353e6c5b0e4d7c0a2af1cdbc09d3ea95 (patch)
treef88c16c14c187db9cade505b6ed6153a0630c6e9 /src/osx/gui/Window.mm
parent5ba45b02e1adee6b1ba15d70c9052cbc1f3c26c5 (diff)
downloadcru-d3e2a751353e6c5b0e4d7c0a2af1cdbc09d3ea95.tar.gz
cru-d3e2a751353e6c5b0e4d7c0a2af1cdbc09d3ea95.tar.bz2
cru-d3e2a751353e6c5b0e4d7c0a2af1cdbc09d3ea95.zip
...
Diffstat (limited to 'src/osx/gui/Window.mm')
-rw-r--r--src/osx/gui/Window.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osx/gui/Window.mm b/src/osx/gui/Window.mm
index ff5572f2..c2134c76 100644
--- a/src/osx/gui/Window.mm
+++ b/src/osx/gui/Window.mm
@@ -92,6 +92,8 @@ OsxWindow::~OsxWindow() {
if (p_->window_) {
[p_->window_ close];
}
+
+ dynamic_cast<OsxUiApplication*>(GetUiApplication())->UnregisterWindow(this);
}
void OsxWindow::Close() {