Skip to content

Commit fa70df6

Browse files
committed
CSS: Clean up memory leak in reliableMarginRight
Fixes gh-1795 Closes gh-1893 Thanks for the report flexphperia! (cherry picked from commit 7d15b4d) Conflicts: src/css/support.js
1 parent 1eedf0e commit fa70df6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/css/support.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ define([
120120

121121
reliableMarginRightVal =
122122
!parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );
123+
124+
div.removeChild( contents );
123125
}
124126

125127
// Support: IE8

0 commit comments

Comments
 (0)