Skip to content

fix: release canvas after use #8123

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

fix: release canvas after use #8123

wants to merge 1 commit into from

Conversation

fengzhou-sg
Copy link
Contributor

@fengzhou-sg fengzhou-sg commented Jun 27, 2025

Call canvas.dispose to clean-up resources after uses. This should prevent memory leak, which may cause failures in new canvas creations.

See also Shopify/react-native-skia#2079

ref: CODY-6011

Test plan

Call `canvas.dispose` to clean-up resources after uses. This should prevent memory leak, which may cause failures in new canvas creations.

ref: CODY-6011
@fengzhou-sg fengzhou-sg requested a review from umpox June 27, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant