Commit 98634f6
authored
Try fix EventRoute weak memory leak (#9463)
Fixes #9467
GC is not reclaiming WPF control objects when they are removed from the visual tree, if tracing is enabled in a WPF application.
This issue came from PR : Reduce allocations when tracing routed events by bgrainger · Pull Request #6700 · dotnet/wpf, a performance improvement for applications using tracing, by removing unnecessary allocations. However, while doing that, we don't clear the array which causes this issue. However, eventually these control objects are collected.1 parent 1103ab7 commit 98634f6
File tree
1 file changed
+4
-2
lines changed- src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | 203 | | |
| 204 | + | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| |||
0 commit comments