Fixed WindowsDriver mem leak

This commit is contained in:
Tigger Kindel
2023-10-05 09:14:51 -06:00
committed by Tig
parent e1e82e07a1
commit e4f3b97da0
7 changed files with 100 additions and 43 deletions

View File

@@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static Terminal.Gui.NetEvents;
namespace Terminal.Gui {
/// <summary>
@@ -205,5 +206,12 @@ namespace Terminal.Gui {
}
}
}
public void TearDown ()
{
_descriptorWatchers?.Clear ();
_mainLoop = null;
}
}
}