Content-Length: 243697 | pFad | http://github.com/NativeScript/NativeScript/pull/10654

3A fix(core): Provided image source gets unintentionally disposed by CatchABus · Pull Request #10654 · NativeScript/NativeScript · GitHub
Skip to content
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

fix(core): Provided image source gets unintentionally disposed #10654

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

CatchABus
Copy link
Contributor

PR Checklist

What is the current behavior?

Image provided source has its native instance disposed during view disposal even when ImageSource instance is provided by developer.

What is the new behavior?

Image provided source does not have its native instance disposed during view disposal when ImageSource instance is provided by developer.
To avoid this, we wrap the native source inside a new ImageSource instance.

Developers will be responsible for cleaning up the image sources they provide just like it has always been for android.
Also, improved code readability for ImageSource.setNativeSource.

Fixes #9820 (revisited) #10625

Sorry, something went wrong.

@NathanWalker NathanWalker merged commit a883a79 into NativeScript:main Jan 13, 2025
0 of 3 checks passed
@NathanWalker NathanWalker added this to the 8.9 milestone Jan 13, 2025
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.

NS 8.2.0+ iOS Base64 images disappearing after scrolling ListView/RadListView
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/pull/10654

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy