Closed Bug 948201 Opened 11 years ago Closed 11 years ago

Use a StaticRefPtr for XPTInterfaceInfoManager

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(1 file)

Bug 936964 exposed some weirdness with XPTI refcounting.
This uses a StaticRefPtr for |gInterfaceInfoManager|.  The nulling in
~XPTInterfaceInfoManager() is needed to keep ASan happy.  I also removed
gCallCount because it's unused.
Attachment #8344994 - Flags: review?(bzbarsky)
Summary: imported patch xpti-StaticPtr → Use a StaticRefPtr for XPTInterfaceInfoManager
Comment on attachment 8344994 [details] [diff] [review]
imported patch xpti-StaticPtr

r=me, but I'd still love to understand why ASAN dislikes that null-set.  Maybe you're right and it's an ASAN bug.  Ah, well.
Attachment #8344994 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/d33302ff2866
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: