Closed Bug 873764 Opened 11 years ago Closed 11 years ago

Add assert to ~nsCycleCollector() that mRunner is null

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(1 file)

If you forget to call shutdown threads, mRunner is non-null when you destroy the collector, and you get a small leak.  With the assertion, this is easier to diagnose.

MOZ_ASSERT(!mRunner, "Destroying cycle collector without destroying its runner, may leak");
Attached patch assertSplinter Review
Attachment #751750 - Flags: review?(khuey)
https://hg.mozilla.org/mozilla-central/rev/2741e5cccc8c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: