mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Explicitly close webContents on removal
This commit is contained in:
@@ -279,6 +279,7 @@ export default class StreamWindow extends EventEmitter<StreamWindowEventMap> {
|
|||||||
for (const view of unusedViews) {
|
for (const view of unusedViews) {
|
||||||
const contentView = view.getSnapshot().context.view
|
const contentView = view.getSnapshot().context.view
|
||||||
win.contentView.removeChildView(contentView)
|
win.contentView.removeChildView(contentView)
|
||||||
|
contentView.webContents.close()
|
||||||
}
|
}
|
||||||
this.views = newViews
|
this.views = newViews
|
||||||
this.emitState()
|
this.emitState()
|
||||||
|
|||||||
Reference in New Issue
Block a user