Skip to content

Commit

Permalink
番組表のメモリリークを修正
Browse files Browse the repository at this point in the history
現在を示す線のタイマーが止まらないため、番組表の再描画のたびに古い番組表ごと残っていた。
フォーク元ではきちんとタイマーを停止しており問題無かったが、変更しているうちに削除してしまっていた。
  • Loading branch information
tkntrec committed Oct 30, 2016
1 parent 350293b commit d63e9e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EpgTimer/EpgTimer/EpgView/EpgMainViewBase.cs
Expand Up @@ -59,6 +59,7 @@ public void SetControls(ProgramView pv, TimeView tv, ScrollViewer hv, Button but

nowViewTimer = new DispatcherTimer(DispatcherPriority.Normal);
nowViewTimer.Tick += new EventHandler(WaitReDrawNowLine);
this.Unloaded += (sender, e) => nowViewTimer.Stop();

button_now.Click += new RoutedEventHandler((sender, e) => MoveNowTime());
}
Expand Down

0 comments on commit d63e9e0

Please sign in to comment.