From fa70df692eff16ad5d64a65ec565542d0690f732 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Mon, 1 Dec 2014 17:35:51 -0500 Subject: [PATCH] CSS: Clean up memory leak in reliableMarginRight Fixes gh-1795 Closes gh-1893 Thanks for the report flexphperia! (cherry picked from commit 7d15b4d1f181de8868c375c545a51e4dfc28a611) Conflicts: src/css/support.js --- src/css/support.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/css/support.js b/src/css/support.js index 4a8fc87ac..05f5cc866 100644 --- a/src/css/support.js +++ b/src/css/support.js @@ -120,6 +120,8 @@ define([ reliableMarginRightVal = !parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight ); + + div.removeChild( contents ); } // Support: IE8 -- 2.39.5