Closed pixelzoom closed 1 year ago
The commit to cherry pick is https://github.com/phetsims/axon/commit/022433795034acf606ba510330a7495d1d56702a
Cherry-picked and patches into axon's 'calculus-grapher-1.0' branch.
To verify in the next RC, repeat memory testing and compare to the results for the previous RC that are shown in https://github.com/phetsims/qa/issues/924#issuecomment-1487547110.
Memory looks ok to me.
For https://github.com/phetsims/qa/issues/924
While reviewing https://github.com/phetsims/scenery-phet/issues/769, @zepumph and I discovered a relatively serious memory leak in Disposable, which is the base class for (among other things) PhetioObject.
From https://github.com/phetsims/scenery-phet/issues/769#issuecomment-1495060141, the line added in this diff is missing, so
disposeEmitter
listeners are not freed.In calculus-grapher, we use
disposeEmitter
througout GraphTypeLabelNode, which appears as labels for the Notation radio buttons appears in the Preferences dialog: f'(x), f'(t), df/dx, df/dt. An example from GraphTypeLabelNode is:In Slack#DM, I asked @zepumph about the above example:
... and he replied:
So I'm going to proceed with patching calculus-grapher 1.0, to be tested in the next RC.
@veillette @amanda-phet FYI.