]> khamidou — GitHub mirrors - electron.git/commit
Clear listeners on process object when unloading.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 4 May 2013 13:52:14 +0000 (21:52 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 4 May 2013 13:52:14 +0000 (21:52 +0800)
commit84dc221b2e03cf92e8ce091c5ed6201e85e372b7
tree2fa75942caf81e6becf561780e9c5d5f9f8a5133
parent6bf0d5d7988e3b3d9437f668670e50a1cacdec9a
Clear listeners on process object when unloading.

The process object is created under node context, and it will live
through the reloading, so we are responsible for clearing the listeners
to make sure resources are not leaked.
renderer/api/lib/ipc.coffee