Closed Bug 746541 Opened 13 years ago Closed 13 years ago

Assert that nsXPConnect::ReleaseXPConnectSingleton removes last reference to nsXPConnect

Categories

(Core :: XPConnect, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: espindola, Assigned: espindola)

Details

Attachments

(1 file)

No description provided.
The debug code in nsXPConnect::ReleaseXPConnectSingleton expects it is the one to remove the last reference to nsXPConnect. Unfortunately, this is not the case right now, but it is easy to fix. This patch fixes it and adds an assert to make the assumption explicit. https://tbpl.mozilla.org/?tree=Try&rev=e4087eb0fe8d
Assignee: nobody → respindola
Status: NEW → ASSIGNED
Attachment #616100 - Flags: review?(benjamin) → review+
The assert found an existing leak in xpcshell-tests. I pushed with out the assert to https://tbpl.mozilla.org/?tree=Birch&rev=0808c7e0388e We can enable the assert once billm fixes the leak
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: