From 5e0c9943876bfcddb460821be2058b9868eb4fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Thu, 21 Dec 2023 12:00:46 -0800 Subject: [PATCH] Dispose ZStringWriter (#14933) --- .../OrchardCore.DisplayManagement/Html/HtmlContentString.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore/OrchardCore.DisplayManagement/Html/HtmlContentString.cs b/src/OrchardCore/OrchardCore.DisplayManagement/Html/HtmlContentString.cs index 15ea0afe43c..75663cbef69 100644 --- a/src/OrchardCore/OrchardCore.DisplayManagement/Html/HtmlContentString.cs +++ b/src/OrchardCore/OrchardCore.DisplayManagement/Html/HtmlContentString.cs @@ -27,7 +27,7 @@ public class HtmlContentString : IHtmlContent private string DebuggerToString() { - var writer = new ZStringWriter(); + using var writer = new ZStringWriter(); WriteTo(writer, HtmlEncoder.Default); return writer.ToString(); }