mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: crash when WindowButtonsProxy references cleared NSWindow (#33488)
* resets WindowButtonsProxy on window delete on macOS * fixes reset Co-authored-by: Gellert Hegyi <gellert.hegyi@around.co>
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user