Showing the changes to interface/src/ui/ScriptEditorWidget.cpp (1 of 12 files). Show all
Unified · Split
| @@ -158,6 +158,8 @@ void ScriptEditorWidget::loadFile(const QString& scriptPath) { · 157 unmodified lines | ||
| 158 | 158 | QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); |
| 159 | 159 | loop.exec(); |
| 160 | 160 | _scriptEditorWidgetUI->scriptEdit->setPlainText(reply->readAll()); |
| 161 | + delete reply; | |
| 162 | + | |
| 161 | 163 | if (!saveAs()) { |
| 162 | 164 | static_cast<ScriptEditorWindow*>(this->parent()->parent()->parent())->terminateCurrentTab(); |
| 163 | 165 | } |