Skip to content

Commit

Permalink
Dispose ZStringWriter (OrchardCMS#14933)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros authored and urbanit committed Mar 18, 2024
1 parent 6bdfaae commit 8d17dcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8d17dcd

Please sign in to comment.