diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 8ee1276924c6..2a779dd76905 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -199,7 +199,8 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents, NativeWindowMac::~NativeWindowMac() { if (window()) - [window() release]; + // Use autorelease since we may have delegates or observers at this time. + [window() autorelease]; } void NativeWindowMac::Close() {