[ad_1]
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?
[ad_2]
لینک منبع