Skip to content

Commit

Permalink
fixes reset
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhardberger authored and codebytere committed Mar 29, 2022
1 parent 59129c6 commit 073890c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shell/browser/native_window_mac.mm
Expand Up @@ -326,10 +326,10 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {

RegisterDeleteDelegateCallback(base::BindOnce(
[](NativeWindowMac* window) {
if (window->window_) {
window->buttons_proxy_.reset(nil);
if (window->window_)
window->window_ = nil;
}
if (window->buttons_proxy_)
window->buttons_proxy_.reset();
},
this));

Expand Down

0 comments on commit 073890c

Please sign in to comment.