summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-04-12 01:47:17 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-04-12 01:49:25 (GMT)
commit56dcdee39b99b52a321802274723f8823e3ab408 (patch)
tree227c45b23e32c3bec5144a0d7688fa666cf498a0 /src/script
parent095695cb15f595a8dd91a6f76418a51a195d9fb7 (diff)
downloadQt-56dcdee39b99b52a321802274723f8823e3ab408.zip
Qt-56dcdee39b99b52a321802274723f8823e3ab408.tar.gz
Qt-56dcdee39b99b52a321802274723f8823e3ab408.tar.bz2
Fix crash on QScriptProgram destruction
Diffstat (limited to 'src/script')
-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)