Skip to content

Commit

Permalink
Don't call unlink on a disposed property from PaintObserver, fixes #692
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Oct 23, 2017
1 parent 84e6066 commit 7d8c7af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/display/PaintObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ define( function( require ) {
if ( this.secondaryListenedCounts[ index ] === 0 ) {
this.secondaryListenedProperties.splice( index, 1 );
this.secondaryListenedCounts.splice( index, 1 );
property.unlink( this.updateSecondaryListener );
if ( !property.isDisposed ) {
property.unlink( this.updateSecondaryListener );
}
}
},

Expand Down

0 comments on commit 7d8c7af

Please sign in to comment.