Destroy will remove the listener from Video.onChangeSource.

This commit is contained in:
photonstorm 2015-05-06 00:42:01 +01:00
parent bf25e67f5a
commit 927c14536d

View file

@ -102,6 +102,11 @@ Phaser.Component.Destroy.prototype = {
this._frame = null;
}
if (Phaser.Video && this.key instanceof Phaser.Video)
{
this.key.onChangeSource.remove(this.resizeFrame, this);
}
this.alive = false;
this.exists = false;
this.visible = false;