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:56:21 +0100
commite70390496d55146ad5528d40ad49efa49b6904b2 (patch)
tree817e9274560d7fa8f741897f74fbf85cd8a2cb40
parentac1581b265726629437b7f02da486451a99159b5 (diff)
downloadjquery-e70390496d55146ad5528d40ad49efa49b6904b2.tar.gz
jquery-e70390496d55146ad5528d40ad49efa49b6904b2.zip
CSS: Clean up memory leak in reliableMarginRight
(cherry-picked from 7d15b4d1f181de8868c375c545a51e4dfc28a611) Fixes gh-1795 Closes gh-1893 Thanks for the report flexphperia!
-rw-r--r--src/css/support.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/css/support.js b/src/css/support.js
index 2cb6fe81d..b9eaf1402 100644
--- a/src/css/support.js
+++ b/src/css/support.js
@@ -83,6 +83,7 @@ define([
ret = !parseFloat( window.getComputedStyle( marginDiv, null ).marginRight );
docElem.removeChild( container );
+ div.removeChild( marginDiv );
return ret;
}