I just wanted to make sure that I was handling this correctly and not creating a memory leak. I read the wiki on reference counting but … guess I’m just not that confident still. Appreciate your thoughts.
I have an array of sprite pointers…
that are filled with random images in a load function (can be 1-6 unique images). In load each sprite is created and then added to the layer.
mSprites[i] = cocos2d::CCSprite::create(tfile.c_str()); mLayer->addChild(mSprites[i], i);
In my unload I just called
Can I call load again with out creating a memory leak or do I have to do more to free up the sprites?