diff --git a/atom/browser/api/lib/web-contents.coffee b/atom/browser/api/lib/web-contents.coffee index 318769eab5..fa4bed4869 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)