From 7d91d5d928acc050a0aca92ed1a20753b43449d7 Mon Sep 17 00:00:00 2001 From: chinhster Date: Thu, 9 Nov 2017 09:04:57 +1100 Subject: Backport: Close autocompletion list for escape and delete on macOS 10.13 as the window was emptying but stayed visible. Backport of changeset 6416:ab409d732f0f. --- cocoa/PlatCocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cocoa') diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 0069106e5..6547631ad 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1908,8 +1908,7 @@ void Window::Destroy() id idWin = static_cast(wid); if ([idWin isKindOfClass: [NSWindow class]]) { - NSWindow* win = static_cast(idWin); - [win release]; + [idWin close]; } } wid = 0; -- cgit v1.2.3