GoodBoyDigital/pixi.js — pull request #647 by giraluna (2014-03-11 08:54:08+00:00)
Title: Fix Text.destroy() and memory leak in BaseTexture.destroy()

Text.destroy() previously always called Texture.destroy() without parameters, which does nothing.

BaseTexture.destroy() only deleted the texture from cache if it was created from an image. It left dangling textures whose cache id can't be accessed if it was made with fromCanvas() ( see http://jsfiddle.net/9UPr9/4/ )