Closed
Bug 964132
Opened 11 years ago
Closed 11 years ago
[RTSP] fix the cycle reference in RtpsMediaResource
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
WONTFIX
blocking-b2g | 1.4+ |
People
(Reporter: bechen, Assigned: bechen)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
bechen
:
review+
|
Details | Diff | Splinter Review |
There is a cycle reference:
RtspMediaResource::mListener
Listener::mResource
We should use raw pointer here.
http://dxr.mozilla.org/mozilla-central/source/content/media/RtspMediaResource.h?from=rtspmediaresource#207
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8365757 -
Flags: review?(sworkman)
Comment 2•11 years ago
|
||
Comment on attachment 8365757 [details] [diff] [review]
bug-964132.patch
Review of attachment 8365757 [details] [diff] [review]:
-----------------------------------------------------------------
r=me assuming the following is checked:
- What other objects maintain a ref to Listener? Could they outlive RtspMediaResource, and thus mean that Listener outlives RtspMediaResource?
- Are there enough null checks for Listener::mResource (assuming Listener can outlive RtspMediaResource)?
- Threading: RtspMediaResource is main thread only, right? More importantly, the Listener is main thread only, right? If not, you might need to lock mResource.
If you need to add some to the patch, just request the review again :)
Attachment #8365757 -
Flags: review?(sworkman) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
The listener is held by RtspControllerChild using nsCOMPtr and RtspController is held by RtspMediaResource only.
Assignee | ||
Comment 5•11 years ago
|
||
r=sworkman
Attachment #8365757 -
Attachment is obsolete: true
Attachment #8370523 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 7•11 years ago
|
||
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.4 S1 (14feb)
Comment 9•11 years ago
|
||
The patch in this bug caused the regression in bug 973840.
Comment 10•11 years ago
|
||
Proposed to back out this, for fixing bug 973840.
Comment 11•11 years ago
|
||
(In reply to Wesley Huang [:wesley_huang] from comment #10)
> Proposed to back out this, for fixing bug 973840.
Ethan is going to provide a patch for bug 973840. It seems no need to back out for this bug.
Comment 12•11 years ago
|
||
(In reply to Ken Chang[:ken] from comment #11)
> Ethan is going to provide a patch for bug 973840. It seems no need to back
> out for this bug.
Actually the patch is already waiting for review. :)
Comment 13•11 years ago
|
||
Backed out in bug 973840. Please resolve this as WONTFIX if no further work is intended for this bug.
https://hg.mozilla.org/integration/mozilla-inbound/rev/404edd4f2130
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 1.4 S1 (14feb) → ---
Updated•11 years ago
|
Component: General → Video/Audio
Product: Firefox OS → Core
Comment 14•11 years ago
|
||
Confirmed. No further work is intended for this bug.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•