Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9f5d78

Browse files
committed
Fix of memory leak with Hover boxes inside HtmlContainerInt.
_hoverBoxes kept links even if control was cleared
1 parent d599642 commit a9f5d78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/HtmlRenderer/Core/HtmlContainerInt.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ public void SetHtml(string htmlSource, CssData baseCssData = null)
425425
/// </summary>
426426
public void Clear()
427427
{
428+
_hoverBoxes.Clear();
429+
428430
if (_root != null)
429431
{
430432
_root.Dispose();

0 commit comments

Comments
 (0)