Closed
Bug 1038150
Opened 10 years ago
Closed 10 years ago
Make nsAnonTempFileRemover's destructor private and also remove the useless ctor/dtor counting macros
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8455317 -
Flags: review?(bjacob)
Comment 2•10 years ago
|
||
Comment on attachment 8455317 [details] [diff] [review] Make nsAnonTempFileRemover's destructor private and also remove the useless ctor/dtor counting macros Review of attachment 8455317 [details] [diff] [review]: ----------------------------------------------------------------- I don't see why the counting macros are useless here.
Attachment #8455317 -
Flags: review?(bjacob) → review-
Comment 3•10 years ago
|
||
ISupports refcounting does the same thing as COUNT_CTOR/DTOR.
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8455317 [details] [diff] [review] Make nsAnonTempFileRemover's destructor private and also remove the useless ctor/dtor counting macros What mccr8 said.
Attachment #8455317 -
Flags: review- → review?(bjacob)
Updated•10 years ago
|
Attachment #8455317 -
Flags: review?(bjacob) → review+
Comment 5•10 years ago
|
||
One interesting thing is that I think if you are using a refcounted class improperly and never addref/release it, then you won't get leak tracking, so COUNT_CTOR is useful. But I think thanks to the work to hide dtors that shouldn't be as much of a problem any more.
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/164c1eef200a
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•