question: public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
target:  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