Commit 0f07b25
authored
fix(material/badge): resolve memory leak (#29676)
The badge had an extra unnecessary check which meant that it would sometimes leak memory through the style loader. This isn't a big deal on the client since there's usually only one app on the page, but it can be a problem on the server which can create and destroy an app for each request.
Note that this is no longer an issue in 19.x where we use the common style loader, but we need to backport the fix to 18.x.
Fixes angular/angular#57529.1 parent 5d93395 commit 0f07b25
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 176 | + | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
0 commit comments