]> khamidou — GitHub mirrors - electron.git/commit
mac: Don't rely on autorelease to delete window delegate
authorCheng Zhao <zcbenz@gmail.com>
Wed, 25 Mar 2015 10:51:29 +0000 (18:51 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 25 Mar 2015 10:51:29 +0000 (18:51 +0800)
commit62f9c3def03c6dcf3b4df530536491db29ff5749
treeae3add378fae83a73248e62d6fcd646382811067
parent9f9f772ff50ccd32b403775178caa54ae0d9e4f8
mac: Don't rely on autorelease to delete window delegate

When quiting while closing window, it will leave the window delegate out
of the autorelease pool and crash.

Fixes #881.
atom/browser/native_window_mac.h
atom/browser/native_window_mac.mm