Summary: | WebAudio: AudioContext::uninitialize() can cause AudioContext deletion before deleting marked nodes. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jer Noble <jer.noble> | ||||
Component: | Web Audio | Assignee: | Jer Noble <jer.noble> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | crogers, eric.carlson, sam, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Jer Noble
2011-11-18 13:42:33 PST
If the AudioContext's destination nodes hold the only references existing to the AudioContext, then calling m_destinationNode.clear() will cause the context's refCount to drop to 0, and the context will be deleted before exiting uninitialize(). This will potentially skip a lot of clean up and will cause an assertion in ~AudioContext(). Created attachment 115867 [details]
Patch
Comment on attachment 115867 [details]
Patch
Is it possible to create a layout test for this?
(In reply to comment #3) > (From update of attachment 115867 [details]) > Is it possible to create a layout test for this? Probably not. Comment on attachment 115867 [details] Patch Clearing flags on attachment: 115867 Committed r101265: <http://trac.webkit.org/changeset/101265> All reviewed patches have been landed. Closing bug. |