Skip to content

Commit a70d18e

Browse files
dmethvinmgol
authored andcommitted
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 b2b1524 commit a70d18e

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)