From 23ab920dffdb7b4a5fbb213c26abf31a547ee721 Mon Sep 17 00:00:00 2001 From: Lucas Viana Date: Wed, 16 Aug 2023 22:11:24 -0300 Subject: [PATCH] fix(xml-element): call Release() to match Write*() on Text.Insert() --- YDotNet/Document/Types/Texts/Text.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YDotNet/Document/Types/Texts/Text.cs b/YDotNet/Document/Types/Texts/Text.cs index 3607e300..2ae1515c 100644 --- a/YDotNet/Document/Types/Texts/Text.cs +++ b/YDotNet/Document/Types/Texts/Text.cs @@ -42,7 +42,7 @@ public void Insert(Transaction transaction, uint index, string value, Input? att TextChannel.Insert(Handle, transaction.Handle, index, valueHandle, attributesHandle); MemoryWriter.TryRelease(attributesHandle); - MemoryWriter.TryRelease(valueHandle); + MemoryWriter.Release(valueHandle); } ///