Browse Source

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

Fix leak in the InternalSelectionModel
pull/8421/head
Steven Kirk 4 years ago
committed by GitHub
parent
commit
83f60dd21a
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) if (_writableSelectedItems is INotifyCollectionChanged incc)
{ {
incc.CollectionChanged += OnSelectedItemsCollectionChanged; incc.CollectionChanged -= OnSelectedItemsCollectionChanged;
} }
} }

Loading…
Cancel
Save