Closed Bug 331165 Opened 19 years ago Closed 16 years ago

nsID::ToString should use NS_Alloc instead of PR_Malloc

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: darin.moz, Assigned: neil)

References

Details

Attachments

(1 file)

nsID::ToString should use NS_Alloc instead of PR_Malloc I think the XPCOM glue should use the XPCOM allocator instead of the NSPR equivalents. Or, we should document somewhere that they are the same. It might be nice if we had a version of nsID::ToString that operated on a nsACString.
Attached patch Proposed patchSplinter Review
So far I only found one caller (nsImportModule.cpp), which uses NS_Free...
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #368356 - Flags: superreview?(benjamin)
Attachment #368356 - Flags: review?(benjamin)
Attachment #368356 - Flags: superreview?(benjamin)
Attachment #368356 - Flags: superreview+
Attachment #368356 - Flags: review?(benjamin)
Attachment #368356 - Flags: review+
Pushed changeset 6be239399910 to mozilla-central.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
See bug 392526 for the follow-up on converting the callers to use NS_Free() in some way or other. Also, we can revert bug 411256 now, right?
Blocks: 485605
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: