I was under the impression that I only needed to stop
the node, and remove all references to it.
The following code leaks memory in Chrome:
const context = new AudioContext();
for (var i = 0; i < 1000000; i++) {
const node = context.createOscillator();
node.start();
node.stop();
}
However, it doesn't leak in Firefox.
Is there something wrong with my code, or is it just a bug in Chrome?
Looks like a bug in Chrome. Please file a bug at crbug.com/new.