From 4989b21dbca8d77f902c02065f917254f15e7a53 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 5 Jun 2017 14:28:58 -0700 Subject: [PATCH] Autorelease semaphore view --- atom/browser/native_window_mac.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 6a323e1cd1a..e4efaa477b3 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -1691,7 +1691,8 @@ void NativeWindowMac::InstallView() { [[window_ standardWindowButton:NSWindowFullScreenButton] setHidden:YES]; if (title_bar_style_ == CUSTOM_BUTTONS_ON_HOVER) { - NSView* buttons = [[SemaphoreView alloc] initWithFrame:NSZeroRect]; + NSView* buttons = + [[[SemaphoreView alloc] initWithFrame:NSZeroRect] autorelease]; buttons.frame = CGRectMake(0, [content_view_ bounds].size.height - buttons.frame.size.height, buttons.frame.size.width,