SmartReader icon indicating copy to clipboard operation
SmartReader copied to clipboard

Memory leak on undisposed doc within Reader

Open Joshhua5 opened this issue 3 years ago • 1 comments

The Reader class creates a IHtmlDocument object which needs to be disposed of.

Workaround using reflection. (typeof(Reader).GetField("doc", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(reader) as IHtmlDocument)?.Dispose();

Joshhua5 avatar Sep 23 '22 10:09 Joshhua5

Thanks for the bug report. I am going to fix it this weekend.

gabriele-tomassetti avatar Sep 23 '22 13:09 gabriele-tomassetti