onRenderTargetDispose method
Implementation
void onRenderTargetDispose(Event event) {
var renderTarget = event.target;
renderTarget.removeEventListener('dispose', onRenderTargetDispose);
deallocateRenderTarget(renderTarget);
info.memory["textures"] = info.memory["textures"]! - 1;
}