Closed
Bug 1145854
Opened 11 years ago
Closed 11 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•11 years ago
|
||
WrapperAnswer::ToString uses NS_ConvertASCIItoUTF16.
Attachment #8580936 -
Flags: review?(wmccloskey)
Updated•11 years ago
|
Whiteboard: [MemShrink]
Attachment #8580936 -
Flags: review?(wmccloskey) → review+
Maybe we should just convert the IPDL type to nsCString.
| Assignee | ||
Comment 3•11 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•11 years ago
|
||
| Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Updated•11 years ago
|
Assignee: nobody → mrbkap
You need to log in
before you can comment on or make changes to this bug.
Description
•