Closed
Bug 1082449
Opened 10 years ago
Closed 10 years ago
Add memory ownership comment for CreateMemoryFile().
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: ayang, Assigned: ayang)
Details
Attachments
(1 file, 1 obsolete file)
1.57 KB,
patch
|
ayang
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•10 years ago
|
||
Assignee: nobody → ayang
Attachment #8504629 -
Flags: review?(roc)
Comment on attachment 8504629 [details] [diff] [review] add_comment_CreateMemoryFile Review of attachment 8504629 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/public/File.h @@ +90,5 @@ > static already_AddRefed<File> > Create(nsISupports* aParent, const nsAString& aContentType, uint64_t aStart, > uint64_t aLength); > > + // The returned File takes ownership of aMemoryBuffer. Also mention that aMemoryBuffer will be freed by moz_free so it must have been allocated by moz_malloc or something compatible with it.
Attachment #8504629 -
Flags: review?(roc) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Update comment.
Attachment #8504629 -
Attachment is obsolete: true
Attachment #8505215 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/422ce62454c6
Keywords: checkin-needed
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/422ce62454c6
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•