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

@@ -613,8 +613,10 @@ namespace Terminal.Gui.ApplicationTests {
Application.MainLoop.Invoke (() => {
tf.Text = $"index{r.Next ()}";
Interlocked.Increment (ref tbCounter);
if (target == tbCounter) // On last increment wake up the check
if (target == tbCounter) {
// On last increment wake up the check
_wakeUp.Set ();
}
});
});
}