Blazored / FluentValidation

A library for using FluentValidation with Blazor
https://blazored.github.io/FluentValidation/
MIT License
597 stars 86 forks source link

[Bug] Probable memory leak #220

Open sejerpz opened 8 months ago

sejerpz commented 8 months ago

Describe the bug In my application, jetbrains dotMemory report a leak by fluent validation. I'm not sure if FluentValidator is the only cause, but I see that it subscribes to EditContext OnValidationRequested and OnFieldChanged and it doesn't unsubscribe on component dispose.

To Reproduce Use the application wich use fluent validation with an EditContext

Expected behavior Expect all resources freed

Hosting Model (is this issue happening with a certain hosting model?):

Additional context FluentValidationValidator version 2.1.0

FluenValidationLeak