Closed
Bug 42384
Opened 25 years ago
Closed 25 years ago
nsFilePicker.cpp deallocates buffer incorrectly
Categories
(SeaMonkey :: UI Design, defect, P3)
Tracking
(Not tracked)
CLOSED
FIXED
People
(Reporter: law, Assigned: law)
Details
(Keywords: crash)
Attachments
(1 file)
At
http://lxr.mozilla.org/seamonkey/source/widget/src/windows/nsFilePicker.cpp#178
delete[] is used to deallocate a buffer obtained via nsString::ToNewCString().
It must use nsMemory::Free.
Note that the comment for nsString::ToNewCString() is erroneous; it states that
one must use nsString::Recycle but that function requires an nsCString as
argument.
I've marked this [crash]. This is a blocker for nsbeta2+ work we're doing so
this should be marked as such. Fix is already available (as attachment).
Comment 4•25 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•