diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-29 07:57:25 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-29 08:12:40 (GMT) |
commit | 9e4aa947217d92c51d09a6adaddaf88829d42f89 (patch) | |
tree | ed609497ffbbb55764473a041185c8971c35b82e /src/script/api/qscriptcontext.cpp | |
parent | 8c9179e96ac6332389fca56bdd1a2b520eb305cb (diff) | |
download | Qt-9e4aa947217d92c51d09a6adaddaf88829d42f89.zip Qt-9e4aa947217d92c51d09a6adaddaf88829d42f89.tar.gz Qt-9e4aa947217d92c51d09a6adaddaf88829d42f89.tar.bz2 |
Memory leak.
d_ptr is not stack allocated anymore
Diffstat (limited to 'src/script/api/qscriptcontext.cpp')
-rw-r--r-- | src/script/api/qscriptcontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/qscriptcontext.cpp b/src/script/api/qscriptcontext.cpp index 9ac0dc8..7a5b291 100644 --- a/src/script/api/qscriptcontext.cpp +++ b/src/script/api/qscriptcontext.cpp @@ -274,7 +274,7 @@ QScriptValue QScriptContext::throwError(const QString &text) */ QScriptContext::~QScriptContext() { - // d_ptr is stack-allocated + delete d_ptr; d_ptr = 0; } |