mac: Do not destroy window immediately.

Fixes atom/atom#1841.
This commit is contained in:
Cheng Zhao 2014-04-07 17:19:27 +08:00
parent 98fcc93862
commit 395eb067d1

View file

@ -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() {