title: Cocos2dx - Clearing specific textures from the cache
body: <p>I am getting crashes on iPhone 4s due to "memory pressure." My game is set up like this:</p>
  
  <ol>
  <li>Main scene sprite sheet that always stays in memory.</li>
  <li>Individual game scene levels load from individual textures (not sprite sheets).</li>
  </ol>
  
  <p>When a level is done and we return to the main scene, I would like those cached game scene textures to get dumped. What ends up happening is that when you play through 3-4 levels, it crashes as it runs out of memory as it never releases this memory after a level. I don't want the level textures to be cached past the lifespan of the game scene. When returning to the main scene, it needs to release this memory.</p>
  
  <p>I have tried removing all of the game scene children which does nothing to memory. I have tried looking for a specific way to clear just these textures I have loaded in this game scene from the cache.</p>
  
  <p>Any suggestions?</p>