Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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