aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-12-01 17:35:51 -0500
committerMichał Gołębiowski <m.goleb@gmail.com>2014-12-11 23:58:55 +0100
commitd7d9d97cc84da10bf2c68f189792b2bbf48dcb7d (patch)
tree27fdce1a2a8f26912e4ded3ebe22d542bffe6a06
parent1026d17d4c504e89b114d216500f513e43e41fdd (diff)
downloadjquery-d7d9d97cc84da10bf2c68f189792b2bbf48dcb7d.tar.gz
jquery-d7d9d97cc84da10bf2c68f189792b2bbf48dcb7d.zip
CSS: Clean up memory leak in reliableMarginRight
(cherry-picked from fa70df692eff16ad5d64a65ec565542d0690f732) Fixes gh-1795 Closes gh-1893 Thanks for the report flexphperia! (cherry picked from commit 7d15b4d1f181de8868c375c545a51e4dfc28a611) Conflicts: src/css/support.js
-rw-r--r--src/css/support.js2
1 files changed, 2 insertions, 0 deletions
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