]> 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:01:45 +0000 (15:01 -0500)
Fixes gh-1795
Closes gh-1893

Thanks for the report flexphperia!

src/css/support.js

index 4279d12e7beac0b39de59a659774cfae7703a1da..0adb5f325b01ff2d531ae6fff4e0eda2986725bf 100644 (file)
@@ -83,6 +83,7 @@ define([
                                ret = !parseFloat( window.getComputedStyle( marginDiv, null ).marginRight );
 
                                docElem.removeChild( container );
+                               div.removeChild( marginDiv );
 
                                return ret;
                        }