Remove unneeded cleanup code
This commit is contained in:
parent
1a93babdbc
commit
e110f5c37c
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue