Closed Bug 484310 Opened 15 years ago Closed 15 years ago

nsCharsetMenu violates XPCOM calling conventions

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file)

nsCharsetMenu::GetURI calls PL_strdup, but it should use the XPCOM allocator.
Attached patch Proposed patchSplinter Review
Assignee: smontagu → neil
Status: NEW → ASSIGNED
Attachment #368405 - Flags: superreview?(jag)
Attachment #368405 - Flags: review?(smontagu)
Comment on attachment 368405 [details] [diff] [review]
Proposed patch

I would suggest we change nsCRT::strdup(const char*) to use the same allocator as nsCRT::strdup(const PRUnichar*), but that's gonna affect a lot more people. New bug?
Attachment #368405 - Flags: superreview?(jag) → superreview+
Comment on attachment 368405 [details] [diff] [review]
Proposed patch

If only he was an intl peer, it would have been more appropriate to get Uri to review this...
Attachment #368405 - Flags: review?(smontagu) → review+
Pushed changeset e1120120b1b7 to mozilla-central.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: