Remove unneeded cleanup code

This commit is contained in:
Cheng Zhao 2014-10-25 23:09:45 +08:00
parent 1a93babdbc
commit e110f5c37c

View file

@ -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)