Closed
Bug 21643
Opened 25 years ago
Closed 24 years ago
xpconnect root wrapper scheme is funky
Categories
(Core :: XPConnect, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla0.9.1
People
(Reporter: waterson, Assigned: jband_mozilla)
References
Details
Attachments
(1 file)
1.33 KB,
patch
|
Details | Diff | Splinter Review |
...in a corner case where a "root" wrapper and a "real" wrapper need to be
constructed at the same time.
Reporter | ||
Comment 1•25 years ago
|
||
Reporter | ||
Comment 2•25 years ago
|
||
N.B. that the first two parts of the patch is irrelevant, and is simply meant to
more clearly balance the way that the root wrapper is released in the dtor. The
second part of the patch is the sauce.
Comment 3•25 years ago
|
||
I *think* I found another leak here too. Although I'm not positive. In
xpconvert::JSData2Native, we make a call to GetNative which looks to me like it
ref counts the natvie object before it returns the native object. But there is
no appropriate release in this method.
I added a release in that code and our leak count went down by a little bit.
(Didn't solve the xul document leak though).
I'll attach another patch with this leak fix too. I'm hoping shaver or jband can
help verify that we do need to release the object returned by GetNative.
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•25 years ago
|
||
I'll look at waterson's patch.
I can see for sure that the case that mscott refers to in xpcconvert is not a
leak. This is calling nsXPCWrappedNative::GetNative with no param which is the
inlined method with no addref:
http://lxr.mozilla.org/seamonkey/source/js/src/xpconnect/src/xpcprivate.h#822
Reporter | ||
Comment 5•25 years ago
|
||
jband: I'd like to land this fix, or something like it, when the tree opens.
what say you?
Assignee | ||
Comment 6•25 years ago
|
||
go for it
Reporter | ||
Comment 7•25 years ago
|
||
hacky fix checked in. jband, leaving this assigned to you as you were gonna
rewrite this all RSN, anyway.
Assignee | ||
Comment 8•25 years ago
|
||
changing bug title from...
[MLK] XPConnect leaks native "root" wrapper
...to...
xpconnect root wrapper scheme is funky
And, I removed the 'mlk' keyword 'cuz it doesn't leak anymore.
I'll revisit this later when this scheme is rewritten for flattening, etc.
Keywords: mlk
Summary: [MLK] XPConnect leaks native "root" wrapper → xpconnect root wrapper scheme is funky
Comment 9•24 years ago
|
||
This bug has not been touched for more than nine months. In most cases, that
means it has "slipped through the net". Please could the owner take a moment to
add a comment to the bug with current status, and/or close it.
Thank you :-)
Gerv
Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9.1
Assignee | ||
Comment 10•24 years ago
|
||
flattening changes in xpcdom branch will fix this.
Assignee | ||
Comment 11•24 years ago
|
||
fixed by XPCDOM_20010329_BRANCH landing
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•