Fix crash when releasing window

This commit is contained in:
Cheng Zhao 2018-04-10 17:31:16 +09:00
parent 2b5bde4071
commit d706a30849

View file

@ -1708,7 +1708,7 @@ void NativeWindowMac::SetVibrancy(const std::string& type) {
return;
}
background_color_before_vibrancy_.reset([window_ backgroundColor]);
background_color_before_vibrancy_.reset([[window_ backgroundColor] retain]);
transparency_before_vibrancy_ = [window_ titlebarAppearsTransparent];
ui::GpuSwitchingManager::SetTransparent(true);