mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
optimize: collect garbage after SetGrammar to avoid memory leak
This commit is contained in:
parent
340fe9e3ba
commit
8fc25e312d
3 changed files with 6 additions and 4 deletions
|
@ -64,8 +64,8 @@ namespace SourceGit.Views
|
|||
var source = DataContext as Models.RevisionTextFile;
|
||||
if (source != null)
|
||||
{
|
||||
Models.TextMateHelper.SetGrammarByFileName(_textMate, source.FileName);
|
||||
Text = source.Content;
|
||||
Models.TextMateHelper.SetGrammarByFileName(_textMate, source.FileName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue