Closed Bug 619802 Opened 15 years ago Closed 15 years ago

nsLocaleService::nsLocaleService leaks resultLocale when posixConverter->GetXPLocale() fails

Categories

(Core :: Internationalization, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug, )

Details

(Keywords: coverity, memory-leak)

Attachments

(1 file)

148 nsLocaleService::nsLocaleService(void) 187 nsLocale* resultLocale; 188 int i; 189 190 resultLocale = new nsLocale(); 191 if ( resultLocale == NULL ) { 192 return; 207 for( i = 0; i < LocaleListLength; i++ ) { 215 result = posixConverter->GetXPLocale(lc_temp, xpLocale); 220 result = posixConverter->GetXPLocale("en-US", xpLocale); 224 result = posixConverter->GetXPLocale(lang, xpLocale); 227 if (NS_FAILED(result)) { this leaks resultLocale: 228 return;
Attached patch patchSplinter Review
i've built the osx branch but not the windows/os2 branch
Assignee: smontagu → timeless
Status: NEW → ASSIGNED
Attachment #498298 - Flags: review?(smontagu)
Attachment #498298 - Flags: approval2.0?
Attachment #498298 - Flags: review?(smontagu) → review+
Attachment #498298 - Flags: approval2.0? → approval2.0+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: