Closed
Bug 304374
Opened 19 years ago
Closed 19 years ago
|nsCOMPtr<nsIInterfaceInfoManager> iim = XPTI_GetInterfaceInfoManager()| leaks
Categories
(Core Graveyard :: XTF, defect)
Core Graveyard
XTF
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: peterv, Assigned: peterv)
Details
(Keywords: memory-leak)
Attachments
(1 file)
|
6.71 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
There's a couple of places in the tree where we do: nsCOMPtr<nsIInterfaceInfoManager> iim = XPTI_GetInterfaceInfoManager(); which leaks because XPTI_GetInterfaceInfoManager addrefs its return value.
| Assignee | ||
Comment 1•19 years ago
|
||
This fixes those leaks in content/xtf and in extensions/java.
Attachment #192437 -
Flags: superreview?(jst)
Attachment #192437 -
Flags: review?(jst)
Comment 2•19 years ago
|
||
Comment on attachment 192437 [details] [diff] [review] v1 r+sr=jst
Attachment #192437 -
Flags: superreview?(jst)
Attachment #192437 -
Flags: superreview+
Attachment #192437 -
Flags: review?(jst)
Attachment #192437 -
Flags: review+
| Assignee | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Attachment #192437 -
Flags: approval1.8.1?
Attachment #192437 -
Flags: approval1.8.0.1?
Keywords: mlk
This looks like it's just a leaked refcount of a singleton.
Updated•19 years ago
|
Attachment #192437 -
Flags: approval1.8.1?
Attachment #192437 -
Flags: approval1.8.0.1?
Comment 4•19 years ago
|
||
If this is a problem lxr shows other calls, in mozilla/extensions/python and mozilla/java/xpcom (why is there both extensions/java/xpcom and java/xpcom?). Correct me if I'm wrong, but there's only ever one xptiInterfaceInfoManager right?
| Assignee | ||
Comment 5•19 years ago
|
||
Yes, this is a singleton and this function has been removed on the trunk.
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•