From 9e4aa947217d92c51d09a6adaddaf88829d42f89 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 29 Jul 2009 09:57:25 +0200 Subject: Memory leak. d_ptr is not stack allocated anymore --- src/script/api/qscriptcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12