From a59170e6bdeffd232c3dbf953e7c163cc914b47b Mon Sep 17 00:00:00 2001 From: Allan Bush Date: Tue, 5 May 2020 18:26:13 -0700 Subject: [PATCH] Close the webview window when closing the webview --- plugins/Mac/Sources/WebViewSeparated.m | 3 +++ 1 file changed, 3 insertions(+) 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;