Dispose fonts

This commit is contained in:
Loporrit
2025-02-09 13:16:33 +00:00
parent 650d41c225
commit a180a1207f

View File

@@ -972,4 +972,14 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
[GeneratedRegex(@"^(?:[a-zA-Z]:\\[\w\s\-\\]+?|\/(?:[\w\s\-\/])+?)$", RegexOptions.ECMAScript)]
#pragma warning restore MA0009 // Add regex evaluation timeout
private static partial Regex PathRegex();
protected override void Dispose(bool disposing)
{
if (!disposing) return;
base.Dispose(disposing);
UidFont.Dispose();
GameFont.Dispose();
}
}