Release resources in browser when renderer view is gonna unloaded.
This commit is contained in:
parent
a674572dd4
commit
31d6be0e63
3 changed files with 14 additions and 0 deletions
|
@ -43,6 +43,9 @@ ipc.on 'ATOM_BROWSER_GLOBAL', (event, processId, routingId, name) ->
|
|||
catch e
|
||||
event.result = type: 'error', value: e.message
|
||||
|
||||
ipc.on 'ATOM_BROWSER_RELEASE_RENDER_VIEW', (event, processId, routingId) ->
|
||||
objectsRegistry.clear processId, routingId
|
||||
|
||||
ipc.on 'ATOM_BROWSER_CURRENT_WINDOW', (event, processId, routingId) ->
|
||||
try
|
||||
windows = objectsRegistry.getAllWindows()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue