diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 92fbb23f..2a3b2735 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2853,6 +2853,14 @@ void MainWindow::closeSupplementaryWindows() { delete this->shortcutsEditor; this->shortcutsEditor = nullptr; } + if (this->projectSettingsEditor) { + delete this->projectSettingsEditor; + this->projectSettingsEditor = nullptr; + } + if (this->customScriptsEditor) { + delete this->customScriptsEditor; + this->customScriptsEditor = nullptr; + } } void MainWindow::closeEvent(QCloseEvent *event) {