Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[windows] fix memory leak when
CollectionView.ItemsSource
changes
Fixes: dotnet#13393 Context: https://github.com/ivan-todorov-progress/maui-collection-view-memory-leak-bug Debugging the above sample, I found that `ItemsView._logicalChildren` grew indefinitely in size if you replace a `CollectionView`'s `ItemsSource` over and over. I could fix this by creating a new `internal` `ItemsView.ClearLogicalChildren()` method and call it from the Windows `ItemsViewHandler`. WIP to determine if we can write a test or if this happens on any other platforms. Android seems OK.
- Loading branch information