Skip to content

Commit

Permalink
Dispose tandems in phet brand, see #203
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 26, 2020
1 parent d858a22 commit dc10b03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/Tandem.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ class Tandem {
arrayRemove( bufferedPhetioObjects, phetioObject );
}
else {
phetioObject.tandem.dispose();
for ( let i = 0; i < phetioObjectListeners.length; i++ ) {
phetioObjectListeners[ i ].removePhetioObject( phetioObject );
}
}
}

phetioObject.tandem.dispose();
}

/**
Expand Down

0 comments on commit dc10b03

Please sign in to comment.