public void removeAllTextures(){
  for (  WeakReference<CCTexture2D> texSR : textures.values()) {
    CCTexture2D tex=texSR.get();
    if (tex != null)     tex.releaseTexture(CCDirector.gl);
  }
  textures.clear();
}

public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
purges the dictionary of loaded textures . call this method if you receive the " memory warning " in the short term : it will free some resources preventing your app from being killed in the medium term : it will allocate more resources in the long term : it will be the same
