]> khamidou — GitHub mirrors - electron.git/commit
Make sure handles of callbacks are releases on exit
authorCheng Zhao <zcbenz@gmail.com>
Fri, 6 Nov 2015 12:23:41 +0000 (20:23 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 6 Nov 2015 13:00:32 +0000 (21:00 +0800)
commitd70706f8765033138f4e19eef8c6ef723b217bc6
treec503b33692cfa510704885ec3df0d18dc25dadc6
parentacf4372cf7d8a07a9c55763ac2bb726e962aa251
Make sure handles of callbacks are releases on exit

Some callbacks are stored in native resources that not managed by
JavaScript, so when those resources are destroyed the JavaScript context
may already be destroyed, and releasing callbacks then would result in
crash.
atom/common/native_mate_converters/callback.cc
atom/common/native_mate_converters/callback.h