From 041c31a88aa452e001a2e3fe3346cb1ffff9d900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 2 Sep 2015 15:54:14 +0200 Subject: [PATCH] Prevent variable leackage. --- src/path/Curve.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index efe205e6..e873723a 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -1653,7 +1653,8 @@ new function() { // Scope for methods that require private functions // Merge intersections very close to the end of a curve to the // beginning of the next curve. for (var i = last; i >= 0; i--) { - var loc = locations[i]; + var loc = locations[i], + next; if (loc._parameter >= tMax && (next = loc._curve.getNext())) { loc._parameter = 0; loc._curve = next;