4nonym0us

Results 4 issues of 4nonym0us

Fixes a memory leak explained in #1242: > [OnLoaded](https://github.com/lepoco/wpfui/blob/4ac96867797267d566b82fbbfcab0c867353afaa/src/Wpf.Ui/Controls/ListView/ListView.cs#L67-L78) method of the ListView from WPF-UI uses DependencyPropertyDescriptor to invoke AddValueChanged, but never unregisters the event handler using RemoveValueChanged, which leads...

controls
PR
dotnet
release

### Describe the bug [OnLoaded](https://github.com/lepoco/wpfui/blob/4ac96867797267d566b82fbbfcab0c867353afaa/src/Wpf.Ui/Controls/ListView/ListView.cs#L67-L78) 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...

bug

## Changes `GLWpfControl.OnUnloaded()` was updated to only release resorces if the control hasn't been disposed yet. ## Behavior #### Before `OnUnloaded` could be fired after the disposal of the control....