Closed
Bug 1285231
Opened 9 years ago
Closed 9 years ago
Don't use Move() to empty plugins list in GMPServiceParent.cpp
Categories
(Core :: Audio/Video: GMP, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla50
| Tracking | Status | |
|---|---|---|
| firefox50 | --- | fixed |
People
(Reporter: mozbugz, Assigned: mozbugz)
Details
Attachments
(1 file)
I've used Move() to move the contents of the plugins list to a local variable in GeckoMediaPluginServiceParent::UnloadPlugins(), expecting that the source list would be emptied. However misleadingly-named Move() does not guarantee that the source object will actually be emptied.
https://hg.mozilla.org/mozilla-central/annotate/09221c72fcb03a7c2b4ab27c75304eae3247e3d1/dom/media/gmp/GMPServiceParent.cpp#l722
An easy fix in this case should be to just swap the contents of the local (empty) list with the plugins list.
| Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/62838/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/62838/
Attachment #8768788 -
Flags: review?(jwwang)
Updated•9 years ago
|
Attachment #8768788 -
Flags: review?(jwwang) → review+
Comment 2•9 years ago
|
||
Comment on attachment 8768788 [details]
Bug 1285231 - Use Swap to move&empty plugins list before unloading -
https://reviewboard.mozilla.org/r/62838/#review59736
Updated•9 years ago
|
Rank: 21
Priority: -- → P2
| Assignee | ||
Comment 3•9 years ago
|
||
Thank you for the review, JW.
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9a123c6c6dbf
Use Swap to move&empty plugins list before unloading - r=jwwang
Comment 5•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•