Skip to content

Commit

Permalink
VideoPlayer: if NetStream is disposed, remove the ENTER_FRAME listene…
Browse files Browse the repository at this point in the history
…r that may have been used to track load progress (closes #1743)
  • Loading branch information
joshtynjala committed Jul 18, 2018
1 parent c7e6166 commit c7c2f85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/feathers/media/VideoPlayer.as
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,9 @@ package feathers.media
{
return;
}

this.removeEventListener(Event.ENTER_FRAME, videoPlayer_progress_enterFrameHandler);

this._netStream.removeEventListener(NetStatusEvent.NET_STATUS, netStream_netStatusHandler);
this._netStream.removeEventListener(IOErrorEvent.IO_ERROR, netStream_ioErrorHandler);
this._netStream.close();
Expand Down

0 comments on commit c7c2f85

Please sign in to comment.