Skip to content

Commit 83f60dd

Browse files
authored
Merge pull request #8420 from AvaloniaUI/Takoooooo-patch-1
Fix leak in the InternalSelectionModel
2 parents c64507f + 2b1eba8 commit 83f60dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Avalonia.Controls/Selection/InternalSelectionModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private void UnsubscribeFromSelectedItems()
168168
{
169169
if (_writableSelectedItems is INotifyCollectionChanged incc)
170170
{
171-
incc.CollectionChanged += OnSelectedItemsCollectionChanged;
171+
incc.CollectionChanged -= OnSelectedItemsCollectionChanged;
172172
}
173173
}
174174

0 commit comments

Comments
 (0)