aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Hughes <hi@scott-hughes.me>2011-05-25 15:18:13 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-25 15:18:13 -0400
commit287156197f296fcbcb8be11aa8ce6f1b819aeda6 (patch)
treee7681b724e904c28a9d886b022bebc2784ae170a
parent408c98fb4b8c1b6957cfe620711f9ea7645293ba (diff)
downloadjquery-287156197f296fcbcb8be11aa8ce6f1b819aeda6.tar.gz
jquery-287156197f296fcbcb8be11aa8ce6f1b819aeda6.zip
Landing pull request 389. Null elements in clone to avoid memory leak in IE. Fixes #9341.
More Details: - https://github.com/jquery/jquery/pull/389 - http://bugs.jquery.com/ticket/9341
-rw-r--r--src/manipulation.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index a148658f5..c76aa9e0d 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -582,6 +582,8 @@ jQuery.extend({
}
}
+ srcElements = destElements = null;
+
// Return the cloned set
return clone;
},