Skip to content

Commit

Permalink
fix(xml-element): call Release() to match Write*() on Text.Insert()
Browse files Browse the repository at this point in the history
  • Loading branch information
LSViana committed Aug 17, 2023
1 parent e5d8ce3 commit 23ab920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YDotNet/Document/Types/Texts/Text.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
Expand Down

0 comments on commit 23ab920

Please sign in to comment.