From c7b3f4ede667e912021d456477c55abd6624e0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Thu, 21 Dec 2023 11:25:34 -0800 Subject: [PATCH] Dispose ZStringWriter --- .../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(); }