Autorelease semaphore view
This commit is contained in:
parent
1adc94b650
commit
4989b21dbc
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue