Autorelease semaphore view

This commit is contained in:
Kevin Sawicki 2017-06-05 14:28:58 -07:00
parent 1adc94b650
commit 4989b21dbc

View file

@ -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,