aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-04-25 11:04:40 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-05-22 10:26:45 +0200
commit9728ea4ab1af1c45c83e1d53686aa26ae44e54cc (patch)
treef2ad32cb35d571abfa58713d9fe2dec88e6e0ccf
parente2d39d604ac84eb83148fc04c4c8fd72d9fcfc6a (diff)
fix memory leak when regenerating transformers
Change-Id: Id6e1528622688a814b5672fbd94009ebcff8afa6 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
-rw-r--r--src/lib/buildgraph/transformer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/buildgraph/transformer.cpp b/src/lib/buildgraph/transformer.cpp
index 4382637ac..5a8ff76a1 100644
--- a/src/lib/buildgraph/transformer.cpp
+++ b/src/lib/buildgraph/transformer.cpp
@@ -149,6 +149,7 @@ void Transformer::createCommands(const PrepareScriptConstPtr &script,
CodeLocation(script->location.fileName,
script->location.line + engine->uncaughtExceptionLineNumber() - 1));
+ qDeleteAll(commands);
commands.clear();
if (scriptValue.isArray()) {
const int count = scriptValue.property("length").toInt32();