Closed
Bug 1145854
Opened 9 years ago
Closed 9 years ago
Fix leak in WrapperOwner::className
Categories
(Core :: DOM: Content Processes, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: mrbkap, Assigned: mrbkap)
References
Details
(Whiteboard: [MemShrink])
Attachments
(1 file, 1 obsolete file)
11.30 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
BaseProxyHandler::className is supposed to return a 'const char *' that is owned by... someone. In practice all callers immediately copy the return value. CPOWs leak the return value, which shows up in LSan stats. I'd like to return a string that's valid for as long as the proxy object is alive.
Assignee | ||
Comment 1•9 years ago
|
||
WrapperAnswer::ToString uses NS_ConvertASCIItoUTF16.
Attachment #8580936 -
Flags: review?(wmccloskey)
Updated•9 years ago
|
Whiteboard: [MemShrink]
Attachment #8580936 -
Flags: review?(wmccloskey) → review+
Maybe we should just convert the IPDL type to nsCString.
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8580936 -
Attachment is obsolete: true
Attachment #8580939 -
Flags: review?(wmccloskey)
Comment on attachment 8580939 [details] [diff] [review] patch v2 Review of attachment 8580939 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8580939 -
Flags: review?(wmccloskey) → review+
Assignee | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=891c1fefc668
Assignee | ||
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7264dc608584
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7264dc608584
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Updated•9 years ago
|
Assignee: nobody → mrbkap
You need to log in
before you can comment on or make changes to this bug.
Description
•