Closed Bug 174218 Opened 22 years ago Closed 21 years ago

nsXPInstallManager::ConfirmChromeInstall leaks return from nsTextFormatter::smprintf

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

Attachments

(1 file)

fwiw, nsXPInstallManager::ConfirmChromeInstall should not call
nsTextFormatter::smprintf directly, it should use the stringbundle api
(formatStringFromName).
Attached patch patchSplinter Review
Comment on attachment 102742 [details] [diff] [review]
patch

Thanks! r=dveditz (or sr=)
Attachment #102742 - Flags: review+
seeking sr
Assignee: dveditz → timeless
+    if (!confirmText)
+        return PR_FALSE;

Shouldn't that be an IsEmpty() check?

sr=bzbarsky with that change.
Comment on attachment 102742 [details] [diff] [review]
patch

i hit this again. moving it onto my radar.
Attachment #102742 - Flags: superreview+
checked in
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: