From fcf623786aeae20485e5253bd2b66c8758053646 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Sun, 9 Jan 2011 16:25:44 -0600 Subject: [PATCH] Ensure that the DOM element ref in an event handler is removed by cleanData to avoid an IE6/7/8 memory leak. Fixes #7054. --- src/manipulation.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/manipulation.js b/src/manipulation.js index 96caa02d0..493082212 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -617,6 +617,11 @@ jQuery.extend({ jQuery.removeEvent( elem, type, data.handle ); } } + + // Null the DOM reference to avoid IE6/7/8 leak (#7054) + if ( data.handle ) { + data.handle.elem = null; + } } if ( deleteExpando ) {