diff --git a/plugins/Mac/Sources/WebViewSeparated.m b/plugins/Mac/Sources/WebViewSeparated.m index 1c682c8f..51a05024 100644 --- a/plugins/Mac/Sources/WebViewSeparated.m +++ b/plugins/Mac/Sources/WebViewSeparated.m @@ -111,6 +111,9 @@ - (void)dispose [webView stopLoading:nil]; webView = nil; } + if (window != nil) { + [window close]; + } gameObject = nil; bitmap = nil; window = nil;