Closed
Bug 709747
Opened 13 years ago
Closed 13 years ago
Support nsCOMPtr<T>::forget(I**)
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
Details
Attachments
(2 files)
1.17 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
1.30 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
As in bug 489705.
Attachment #580873 -
Flags: review?(benjamin)
Updated•13 years ago
|
Attachment #580873 -
Flags: review?(benjamin) → review+
I love you.
Comment on attachment 580873 [details] [diff] [review] Patch v1 Wait, the reason the old code called swap on a temp ptr was for comptr logging. Your current patch skips all that. Are you sure this won't mess up the comptr logging scripts?
Assignee | ||
Comment 3•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/82bc89d8e3c3
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Ms2ger, you didn't address comment 2. Do our leak scripts handle this?
Assignee | ||
Comment 5•13 years ago
|
||
No idea.
Yeah, I think this needs to use NSCAP_LOG_RELEASE to make nsCOMPtr logging work again.
Attachment #637311 -
Flags: review?(dbaron)
Comment on attachment 637311 [details] [diff] [review] Fix the COMPtr logging r=dbaron
Attachment #637311 -
Flags: review?(dbaron) → review+
Er, ugh, now that I look again, we shouldn't have made the second change, since nsCOMPtr<nsISupports>::forget(nsISupports**) uses swap().
Previous patch half backed out in https://hg.mozilla.org/mozilla-central/rev/f08d285b63b0 , so things should now be good.
You need to log in
before you can comment on or make changes to this bug.
Description
•