title: In Cocos2d, how to release texture from OpenGL memory(GPU)?
body: <pre><code>CCSprite *sprite;
  sprite.texture = [[CCTextureCache sharedTextureCache] addImage: @"mySpriteImage.png"];
  sprite.position = ccp(width/2.0f, height/2.0f);
  [self addChild:sprite z:2 tag:kTagMySprite];
  
  ...
  
  [sprite removeFromParentAndCleanup:YES];
  </code></pre>
  
  <p>Is there a memory leak in the code above? Is the OpenGL texture released, or does it need to be released from the cache?</p>