Skip to content

fix: properly release of StringBuilderCache in TextBox.DeleteSelection #18985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dme-compunet
Copy link
Contributor

@dme-compunet dme-compunet commented Jun 3, 2025

What does the pull request do?

This PR fixes an issue where StringBuilderCache.Acquire was being used incorrectly, The current implementation did not properly release the StringBuilder back to the cache after use.

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 12.0.999-cibuild0056876-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul added area-perf bug backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Jun 3, 2025
Copy link
Member

@MrJul MrJul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@MrJul MrJul added this pull request to the merge queue Jun 3, 2025
Merged via the queue into AvaloniaUI:master with commit 6de76dd Jun 3, 2025
11 checks passed
@MrJul MrJul added backported-11.3.x and removed backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants