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

Call retain() on the sprite frames used in the animation? #22

Open
vkbsb opened this issue Jul 22, 2013 · 0 comments
Open

Call retain() on the sprite frames used in the animation? #22

vkbsb opened this issue Jul 22, 2013 · 0 comments

Comments

@vkbsb
Copy link

vkbsb commented Jul 22, 2013

Hi
Here is the situation im' facing

  1. create a super anim node with animation file.
  2. add it to a scene.
  3. switch to a new scene (which causes the anim node to be destroyed).
  4. In the new scene i create an instance of the same animation file.
  5. It uses the pointer information from sprite frame cache.
  6. Auto releaser kicks in deletes the spriteframe
  7. now the animnode has a dangling pointer which causes display corruption.

We should probably call retain on the sprite frames that are being used in the sprite sheet.

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

No branches or pull requests

1 participant