Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2014-05-07 01:23:47 -0400
committerEd Willink2014-05-07 01:31:13 -0400
commit50aa6f63997d7a8ea29feee77d4d2363b38d0ffb (patch)
tree3e2fed16b979fa0565131d498c7b345000630deb
parentb12dccec2a594db3d815529a32807304f296c788 (diff)
downloadorg.eclipse.qvtd-50aa6f63997d7a8ea29feee77d4d2363b38d0ffb.tar.gz
org.eclipse.qvtd-50aa6f63997d7a8ea29feee77d4d2363b38d0ffb.tar.xz
org.eclipse.qvtd-50aa6f63997d7a8ea29feee77d4d2363b38d0ffb.zip
[422933] Pop nestedVisitor after mapping callLuna_M7
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiEvaluationVisitorImpl.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiEvaluationVisitorImpl.java b/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiEvaluationVisitorImpl.java
index 9b6b550e0..992dd2e69 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiEvaluationVisitorImpl.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtimperative/src/org/eclipse/qvtd/pivot/qvtimperative/evaluation/QVTiEvaluationVisitorImpl.java
@@ -201,7 +201,12 @@ public class QVTiEvaluationVisitorImpl extends QVTiAbstractEvaluationVisitor {
QVTiEvaluationVisitor nv = ((QVTiEvaluationVisitor) undecoratedVisitor).createNestedEvaluator();
// The Undecorated visitor createNestedEvaluator should return the undecorated, so no need
// to call the getUndecoratedVisitor.
- mappingCall.accept(nv);
+ try {
+ mappingCall.accept(nv);
+ }
+ finally {
+ nv.dispose();
+ }
}
// }
// }

Back to the top