]> 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)
committerMichał Gołębiowski <m.goleb@gmail.com>
Thu, 11 Dec 2014 22:58:55 +0000 (23:58 +0100)
(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

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