Skip to content

Commit 3eb9126

Browse files
authored
Fix dispose() not cleaning up per-window listeners (#186)
1 parent 1ad08ae commit 3eb9126

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ export default function contextMenu(options = {}) {
378378
};
379379

380380
webContents(win).once('destroyed', disposable);
381+
disposables.push(disposable);
381382
};
382383

383384
const dispose = () => {

0 commit comments

Comments
 (0)