mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
fix<*>: add cleanups to fix memory leak
This commit is contained in:
parent
13ab3d1eae
commit
c3b1b6d502
6 changed files with 37 additions and 10 deletions
|
@ -87,10 +87,11 @@ namespace SourceGit.Views {
|
|||
}
|
||||
|
||||
private void OnTabClosed(object sender, Widgets.PageTabBar.TabEventArgs e) {
|
||||
Controls.PopupWidget.UnregisterContainer(e.TabId);
|
||||
Models.Watcher.Close(e.TabId);
|
||||
Commands.AutoFetch.Stop(e.TabId);
|
||||
container.Remove(e.TabId);
|
||||
Controls.PopupWidget.UnregisterContainer(e.TabId);
|
||||
GC.Collect();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue