From e110f5c37cc6f2b95ab52c86b255039eef0aa13e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 25 Oct 2014 23:09:45 +0800 Subject: [PATCH] Remove unneeded cleanup code --- atom/browser/api/lib/web-contents.coffee | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/atom/browser/api/lib/web-contents.coffee b/atom/browser/api/lib/web-contents.coffee index 318769eab535..fa4bed486923 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)