mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixes leak in cursesdriver (can't test)
This commit is contained in:
@@ -207,9 +207,11 @@ internal class CursesDriver : ConsoleDriver {
|
||||
StopReportingMouseMoves ();
|
||||
SetCursorVisibility (CursorVisibility.Default);
|
||||
|
||||
_mainLoop.RemoveWatch (_processInputToken);
|
||||
_mainLoop.WinChanged -= ProcessInput;
|
||||
|
||||
if (_mainLoop != null) {
|
||||
_mainLoop.RemoveWatch (_processInputToken);
|
||||
_mainLoop.WinChanged -= ProcessInput;
|
||||
}
|
||||
|
||||
if (RunningUnitTests) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user