From: Cheng Zhao Date: Sat, 25 Oct 2014 15:09:45 +0000 (+0800) Subject: Remove unneeded cleanup code X-Git-Tag: v0.19.0~3^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e110f5c37cc6f2b95ab52c86b255039eef0aa13e;p=electron.git Remove unneeded cleanup code --- diff --git a/atom/browser/api/lib/web-contents.coffee b/atom/browser/api/lib/web-contents.coffee index 318769ea..fa4bed48 100644 --- a/atom/browser/api/lib/web-contents.coffee +++ b/atom/browser/api/lib/web-contents.coffee @@ -43,9 +43,4 @@ module.exports.wrap = (webContents) -> webContents module.exports.create = (options={}) -> - webContents = @wrap binding.create(options) - - # Ensure the webContents is destroyed on exit. - process.on 'exit', -> webContents.destroy() - - webContents + @wrap binding.create(options)