summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/script/api/qscriptprogram.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/api/qscriptprogram.cpp b/src/script/api/qscriptprogram.cpp
index 8d4de11..02beba4 100644
--- a/src/script/api/qscriptprogram.cpp
+++ b/src/script/api/qscriptprogram.cpp
@@ -63,6 +63,10 @@ QScriptProgramPrivate::QScriptProgramPrivate(const QString &src,
QScriptProgramPrivate::~QScriptProgramPrivate()
{
+ if (engine) {
+ QScript::APIShim shim(engine);
+ _executable.clear();
+ }
}
QScriptProgramPrivate *QScriptProgramPrivate::get(const QScriptProgram &q)