WebAudio: Fix OscillatorNode liveness
Canonical fix: - Model liveness through OscillatorNode (AudioNode), i.e., keep alive listener from there. - Change off-thread handler to use a weak root This works as AudioNode disposes the handler in the pre-finalizer. This fixes webaudio/Oscillator/osc-low-freq.html for unified heap running with leak detection. Bug: 928781, 843903 Change-Id: I58a76bb0d5a47e65e91516cde6c4fe77044cb8ae Reviewed-on: https://chromium-review.googlesource.com/c/1488922 Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Hongchan Choi <hongchan@chromium.org> Cr-Commit-Position: refs/heads/master@{#635594}
Showing
Please register or sign in to comment