GoodBoyDigital/pixi.js — pull request #591 by cacheflowe (2014-02-17 03:59:26+00:00)
Title: Fix PIXI.Texture.removeTextureFromCache()

This fixes a couple of issues:

* Cached textures should also be removed from PIXI.BaseTextureCache to be fully removed. This was discussed here: http://www.html5gamedevs.com/topic/2182-pixi-web-app-slows-down-after-loading-20mb-of-images-on-ipad-mini2/?p=14945

* Base64-encoded images loaded with PIXI.Texture.fromImage() use the full base64 string as the hash key (rather than a much smaller image URL string for "normal" texture loading). This essentially doubles the browser memory usage for each cached image. Previously, when setting the value as null, the key remained, leaving an image worth of data still in the TextureCache. This fix is essential if loading & clearing lots of base64-encoded images.