autorelease NSVisualEffectView

This commit is contained in:
Kevin Sawicki 2016-11-11 08:44:11 -08:00
parent 5e62d28e50
commit 2d8a61a775

View file

@ -1227,8 +1227,8 @@ void NativeWindowMac::SetVibrancy(const std::string& type) {
NSVisualEffectView* effect_view = (NSVisualEffectView*)vibrant_view;
if (effect_view == nil) {
effect_view = [[NSVisualEffectView alloc] initWithFrame:
[[window_ contentView] bounds]];
effect_view = [[[NSVisualEffectView alloc]
initWithFrame: [[window_ contentView] bounds]] autorelease];
[window_ setVibrantView:(NSView*)effect_view];
[effect_view setAutoresizingMask: