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

SpriteFrameCache: fix dangling ref in removeSpriteFramesFromTexture() #2106

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

smilediver
Copy link
Contributor

Fixes a dangling reference in SpriteFrameCache::removeSpriteFramesFromTexture(), where it makes a copy of std::string key on stack, and then pushes reference to it to std::vector<std::string_view> container.

@halx99 halx99 merged commit ebdf2a7 into axmolengine:dev Aug 27, 2024
15 checks passed
@halx99 halx99 added this to the 2.1.6 milestone Aug 27, 2024
@smilediver smilediver deleted the fix_sprite_frame_cache branch August 29, 2024 09:30
xfbird pushed a commit to xfbird/axmol that referenced this pull request Sep 18, 2024
xfbird pushed a commit to xfbird/axmol that referenced this pull request Sep 18, 2024
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.

2 participants