diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-25 07:45:20 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-25 08:36:35 (GMT) |
commit | a5a215eefff176eda3b1bb97ee70abfbab20f054 (patch) | |
tree | 2a66bc6d4727aa31217a975383191ed67abc9f1f /src/script/api/qscriptengineagent.cpp | |
parent | 5e43eb85043395655155edb5206de15024e3fb71 (diff) | |
download | Qt-a5a215eefff176eda3b1bb97ee70abfbab20f054.zip Qt-a5a215eefff176eda3b1bb97ee70abfbab20f054.tar.gz Qt-a5a215eefff176eda3b1bb97ee70abfbab20f054.tar.bz2 |
Memory leak in QScriptEngineAgent.
The documentation of the agent constructor specify that the agant is
owned by the engine. Even if the agent is not set to the engine
Reviewed-by: Kent Hansen
Diffstat (limited to 'src/script/api/qscriptengineagent.cpp')
-rw-r--r-- | src/script/api/qscriptengineagent.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/qscriptengineagent.cpp b/src/script/api/qscriptengineagent.cpp index b18f29d..193ee21 100644 --- a/src/script/api/qscriptengineagent.cpp +++ b/src/script/api/qscriptengineagent.cpp @@ -213,6 +213,7 @@ QScriptEngineAgent::QScriptEngineAgent(QScriptEngine *engine) { d_ptr->q_ptr = this; d_ptr->engine = QScriptEnginePrivate::get(engine); + d_ptr->engine->ownedAgents.append(this); } /*! |