mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Merge pull request #8416 from ivandrofly/feature/se-listview-dispose
Add Dispose method to SubtitleListView control
This commit is contained in:
commit
24de4b2e5a
@ -2384,5 +2384,23 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
|
||||
EndUpdate();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
|
||||
if (disposing)
|
||||
{
|
||||
// unhook handler
|
||||
_setLastColumnWidthTimer.Tick -= SetLastColumnWidthTimer_Tick;
|
||||
_syntaxColorLineTimer.Tick -= SyntaxColorLineTimerTick;
|
||||
_setStartAndDurationTimer.Tick -= SetStartAndDurationTimerTick;
|
||||
|
||||
// dispose timers
|
||||
_setLastColumnWidthTimer.Dispose();
|
||||
_syntaxColorLineTimer.Dispose();
|
||||
_setStartAndDurationTimer.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user