From ca29a232e4d4eca75e78813ca8ede1c1b38b3544 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 3 Dec 2024 10:44:27 +0800 Subject: [PATCH] enhance: call gc after viewing commit changed --- src/ViewModels/CommitDetail.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ViewModels/CommitDetail.cs b/src/ViewModels/CommitDetail.cs index 2872528a..29de3946 100644 --- a/src/ViewModels/CommitDetail.cs +++ b/src/ViewModels/CommitDetail.cs @@ -623,6 +623,8 @@ namespace SourceGit.ViewModels RevisionFileSearchFilter = string.Empty; IsRevisionFileSearchSuggestionOpen = false; + GC.Collect(); + if (_commit == null) return;