diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-10-23 07:38:56 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-10-23 07:38:56 (GMT) |
commit | 3c2f239b974a776c05ab0886925db1c8dca19d4d (patch) | |
tree | 10d77ea8e1577dbf24351ac161aa4248ff7dce89 /src/script | |
parent | 9c1e8178aca83e2a9e3c7aa8a9a9c91a6fa4ec71 (diff) | |
download | Qt-3c2f239b974a776c05ab0886925db1c8dca19d4d.zip Qt-3c2f239b974a776c05ab0886925db1c8dca19d4d.tar.gz Qt-3c2f239b974a776c05ab0886925db1c8dca19d4d.tar.bz2 |
delete the executable when the program is destroyed
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/qscriptprogram.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/script/api/qscriptprogram.cpp b/src/script/api/qscriptprogram.cpp index 2746c44..96760ba 100644 --- a/src/script/api/qscriptprogram.cpp +++ b/src/script/api/qscriptprogram.cpp @@ -44,14 +44,16 @@ #include "qscriptengine.h" #include "qscriptengine_p.h" +#include "Executable.h" + QT_BEGIN_NAMESPACE /*! + \internal + \since 4.6 \class QScriptProgram - \brief The QScriptProgram class ... - \ingroup script */ @@ -66,6 +68,7 @@ QScriptProgramPrivate::QScriptProgramPrivate(QScriptEnginePrivate *e, QScriptProgramPrivate::~QScriptProgramPrivate() { + delete executable; } QScriptProgramPrivate *QScriptProgramPrivate::get(const QScriptProgram &q) |