Frame.destroy will now null the Frames reference to its parent texture, glTexture and clear the data and customData objects.

This commit is contained in:
Richard Davey 2019-08-07 12:59:23 +01:00
parent 4faac7fcc3
commit 6c04d99039

View file

@ -707,16 +707,18 @@ var Frame = new Class({
},
/**
* Destroys this Frames references.
* Destroys this Frame by nulling its reference to the parent Texture and and data objects.
*
* @method Phaser.Textures.Frame#destroy
* @since 3.0.0
*/
destroy: function ()
{
this.texture = null;
this.source = null;
this.texture = null;
this.glTexture = null;
this.customData = null;
this.data = null;
},
/**