diff options
Diffstat (limited to 'scriptrunner.cpp')
-rw-r--r-- | scriptrunner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scriptrunner.cpp b/scriptrunner.cpp index a3ab9d2..c75a90d 100644 --- a/scriptrunner.cpp +++ b/scriptrunner.cpp @@ -132,6 +132,8 @@ ErrorMessage ScriptRunner::runScript(const QString fileName) if (editorManager->currentEditor()) editorManager->currentEditor()->widget()->setFocus(Qt::OtherFocusReason); + m_engine->collectGarbage(); + if (failed) return ErrorMessage(errorFileName, m_engine->uncaughtExceptionLineNumber(), result.toString()); |