Browse Source

Merge pull request #8420 from AvaloniaUI/Takoooooo-patch-1

Fix leak in the InternalSelectionModel
release/0.10.16
Steven Kirk 4 years ago
committed by Dan Walmsley
parent
commit
3878b13470
  1. 2
      src/Avalonia.Controls/Selection/InternalSelectionModel.cs

2
src/Avalonia.Controls/Selection/InternalSelectionModel.cs

@ -170,7 +170,7 @@ namespace Avalonia.Controls.Selection
{
if (_writableSelectedItems is INotifyCollectionChanged incc)
{
incc.CollectionChanged += OnSelectedItemsCollectionChanged;
incc.CollectionChanged -= OnSelectedItemsCollectionChanged;
}
}

Loading…
Cancel
Save