From 7d15b4d1f181de8868c375c545a51e4dfc28a611 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Mon, 1 Dec 2014 17:35:51 -0500 Subject: CSS: Clean up memory leak in reliableMarginRight Fixes gh-1795 Closes gh-1893 Thanks for the report flexphperia! --- src/css/support.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/css') diff --git a/src/css/support.js b/src/css/support.js index 4279d12e7..0adb5f325 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; } -- cgit v1.2.3