You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OnLoaded method of the ListView from WPF-UI uses DependencyPropertyDescriptor to invoke AddValueChanged, but never unregisters the event handler using RemoveValueChanged, which leads to a memory leak because a strong refence is created to the component.
Describe the bug
OnLoaded method of the ListView from WPF-UI uses
DependencyPropertyDescriptor
to invokeAddValueChanged
, but never unregisters the event handler usingRemoveValueChanged
, which leads to a memory leak because a strong refence is created to the component.wpfui/src/Wpf.Ui/Controls/ListView/ListView.cs
Lines 67 to 78 in 4ac9686
To Reproduce
An instance of a
ListView
from WPF-UI stays in memory forever because a strong reference to the component is created and never removed.Expected behavior
ListView
should subscribe toUnloaded
event and callRemoveValueChanged
.Screenshots
No response
OS version
All.
.NET version
All.
WPF-UI NuGet version
3.0.5 - latest (4.0.0-rc.2)
Additional context
No response
The text was updated successfully, but these errors were encountered: