fix: crash when WindowButtonsProxy references cleared NSWindow (#33069)
* resets WindowButtonsProxy on window delete on macOS * fixes reset
This commit is contained in:
parent
594dc7e24a
commit
4aeeb64d30
1 changed files with 2 additions and 0 deletions
|
@ -328,6 +328,8 @@ NativeWindowMac::NativeWindowMac(const gin_helper::Dictionary& options,
|
|||
[](NativeWindowMac* window) {
|
||||
if (window->window_)
|
||||
window->window_ = nil;
|
||||
if (window->buttons_proxy_)
|
||||
window->buttons_proxy_.reset();
|
||||
},
|
||||
this));
|
||||
|
||||
|
|
Loading…
Reference in a new issue