Closed Josch600 closed 4 months ago
@Josch600 Thank you for raising this issue, I believe that this will be fixed in V4.0.9 if you still have issues with the memory, please raise a new issue.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug 🐞
A class derived from ReactiveValidationObject is not garbage collected, if it has set a validation rule and subscribed to ValidationContext.ValidationStatusChange.
Step to reproduce
namespace RxValidation { public sealed class Class1 : ReactiveValidationObject, IDisposable { private readonly CompositeDisposable disposable = new CompositeDisposable();
}
using System; using FluentAssertions; using JetBrains.dotMemoryUnit; using RxValidation; using Xunit; using Xunit.Abstractions;
namespace RxValidationTests { public class Class1Tests { public Class1Tests(ITestOutputHelper testOutputHelper) { DotMemoryUnitTestOutput.SetOutputMethod(testOutputHelper.WriteLine); }
}