Browse Source

Fix leak in the InternalSelectionModel

pull/8420/head
Tako 4 years ago
committed by GitHub
parent
commit
2b1eba8c7c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Selection/InternalSelectionModel.cs

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

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

Loading…
Cancel
Save