mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixed '_functionTimer' not be disposed after quit if it's running. (#2007)
This commit is contained in:
@@ -135,11 +135,15 @@ namespace UICatalog.Scenarios {
|
||||
|
||||
void Top_Unloaded ()
|
||||
{
|
||||
if (_fractionTimer != null) {
|
||||
_fractionTimer.Dispose ();
|
||||
_fractionTimer = null;
|
||||
}
|
||||
if (_pulseTimer != null) {
|
||||
_pulseTimer.Dispose ();
|
||||
_pulseTimer = null;
|
||||
Top.Unloaded -= Top_Unloaded;
|
||||
}
|
||||
Top.Unloaded -= Top_Unloaded;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user