Mercurial > hg > svcore
diff transform/ModelTransformer.cpp @ 890:4cbf8c6a462d tony_integration
Merge from branch tonioni
author | Chris Cannam |
---|---|
date | Tue, 11 Mar 2014 17:30:35 +0000 |
parents | b109b88bfa85 |
children | fe3f7f8df3a3 |
line wrap: on
line diff
--- a/transform/ModelTransformer.cpp Tue Jan 28 15:01:54 2014 +0000 +++ b/transform/ModelTransformer.cpp Tue Mar 11 17:30:35 2014 +0000 @@ -18,6 +18,7 @@ ModelTransformer::ModelTransformer(Input input, const Transform &transform) : m_input(input), m_detached(false), + m_detachedAdd(false), m_abandoned(false) { m_transforms.push_back(transform); @@ -27,6 +28,7 @@ m_transforms(transforms), m_input(input), m_detached(false), + m_detachedAdd(false), m_abandoned(false) { } @@ -36,9 +38,12 @@ m_abandoned = true; wait(); if (!m_detached) { - foreach (Model *m, m_outputs) { - delete m; - } + Models mine = getOutputModels(); + foreach (Model *m, mine) delete m; + } + if (!m_detachedAdd) { + Models mine = getAdditionalOutputModels(); + foreach (Model *m, mine) delete m; } }