diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-12 01:47:17 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-12 01:49:25 (GMT) |
commit | 56dcdee39b99b52a321802274723f8823e3ab408 (patch) | |
tree | 227c45b23e32c3bec5144a0d7688fa666cf498a0 /src/script | |
parent | 095695cb15f595a8dd91a6f76418a51a195d9fb7 (diff) | |
download | Qt-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.cpp | 4 |
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) |