aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm3
1 files changed, 1 insertions, 2 deletions
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<id>(wid);
if ([idWin isKindOfClass: [NSWindow class]])
{
- NSWindow* win = static_cast<NSWindow*>(idWin);
- [win release];
+ [idWin close];
}
}
wid = 0;