From f5afafe26a12465e9bd2cddc3bf95235bdd9b5e9 Mon Sep 17 00:00:00 2001 From: kPherox Date: Fri, 5 Apr 2019 20:43:37 +0900 Subject: [PATCH] Remove all listener when closed main window --- app/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.js b/app/main.js index 29fa7e58..a3bfd6e1 100644 --- a/app/main.js +++ b/app/main.js @@ -115,6 +115,7 @@ function createWindow() { } // ウィンドウが閉じられたらアプリも終了 mainWindow.on('closed', function() { + electron.ipcMain.removeAllListeners(); mainWindow = null; }); mainWindow.on('close', function() {