]> source.dussan.org Git - jquery.git/commitdiff
CSS: Clean up memory leak in reliableMarginRight
authorDave Methvin <dave.methvin@gmail.com>
Mon, 1 Dec 2014 22:35:51 +0000 (17:35 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 2 Dec 2014 20:18:03 +0000 (15:18 -0500)
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

index 4a8fc87ac1efe0af9d3702c3a1129d0e26c0f61e..05f5cc8666168fe016ad1c2c8b71c0bd3bcb5425 100644 (file)
@@ -120,6 +120,8 @@ define([
 
                        reliableMarginRightVal =
                                !parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );
+
+                       div.removeChild( contents );
                }
 
                // Support: IE8