From: Dave Methvin Date: Mon, 1 Dec 2014 22:35:51 +0000 (-0500) Subject: CSS: Clean up memory leak in reliableMarginRight X-Git-Tag: 3.0.0-alpha1+compat~200 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa70df692eff16ad5d64a65ec565542d0690f732;p=jquery.git 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 --- 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