Closed Bug 1028142 Opened 10 years ago Closed 10 years ago

Remove dangerous public destructor of CSF::VideoControl

Categories

(Core :: WebRTC: Signaling, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: bjacob, Assigned: anujagarwal464)

References

Details

Attachments

(2 files)

In bug 1027251 we removed all dangerous public destructors of XPCOM-refcounted classes outside of a finite whitelist, see HasDangerousPublicDestructor. Now we are going over the entries in this whitelist.

One of them is: CSF::VideoControl
Attached patch bug1028142.diffSplinter Review
Assignee: nobody → anujagarwal464
Attachment #8454912 - Flags: feedback?(bjacob)
Comment on attachment 8454912 [details] [diff] [review]
bug1028142.diff

Review of attachment 8454912 [details] [diff] [review]:
-----------------------------------------------------------------

If that is that simple, then that's great! Do you have tryserver access, though? I did try to fix myself such trivial cases, so I was sort of expecting that those for which I added HasDangerousPublicDestructor were not so trivial.
Attachment #8454912 - Flags: feedback?(bjacob) → feedback+
This is just Anuj's patch rebased a tiny bit.

try: https://tbpl.mozilla.org/?tree=Try&rev=daa327c18c40
Attachment #8464355 - Flags: review?(adam)
Comment on attachment 8464355 [details] [diff] [review]
Make the destructor of CSF::VideoControl private.

Review of attachment 8464355 [details] [diff] [review]:
-----------------------------------------------------------------

Looks fine. Thanks.
Attachment #8464355 - Flags: review?(adam) → review+
https://hg.mozilla.org/mozilla-central/rev/00aaf442d9b9
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: