Closed Bug 1189423 Opened 9 years ago Closed 9 years ago

Add MOZ_COUNT_CTOR/DTOR for nsXPTCStubBase

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(2 files, 1 obsolete file)

This would have caught bug 1074416 in regular leak checking builds.
I guess we must not clean these up because I'm seeing megabytes of these leaking in each run.
  https://treeherder.mozilla.org/#/jobs?repo=try&revision=8f4032142f5e
Assignee: continuation → nobody
I'm not going to have time to investigate what is going wrong any time soon, but here's the patch.
I decided to see if I could reproduce the leak locally. Then I realized that in my original patch I used MOZ_COUNT_CTOR in both the constructor and destructor, which would explain the leaks. Hopefully this version will work out better.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=0a7cb1ea459a
Attachment #8641309 - Attachment is obsolete: true
Comment on attachment 8641310 [details] [diff] [review]
part 2 - Remove superfluous |new| result check.

try is green
Attachment #8641310 - Flags: review?(nfroyd)
Attachment #8643284 - Flags: review?(nfroyd)
Assignee: nobody → continuation
Attachment #8643284 - Flags: review?(nfroyd) → review+
Attachment #8641310 - Flags: review?(nfroyd) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/4a4b5cc7433b
https://hg.mozilla.org/mozilla-central/rev/b1e940e09127
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: