Closed Bug 284329 Opened 19 years ago Closed 18 years ago

SHGetMalloc API call is deprecated (in setup.c)

Categories

(Firefox :: Installer, defect)

1.5.0.x Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: David.R.Gardiner, Assigned: David.R.Gardiner)

References

Details

Attachments

(1 file, 1 obsolete file)

According to the MSDN documentation
(http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shgetmalloc.asp)

"This function should no longer be used. Use the CoTaskMemFree and
CoTaskMemAlloc functions in its place"

This is used in:

/toolkit/mozapps/installer/windows/wizard/setup/dialogs.c, line 653 -- if
(SUCCEEDED(SHGetMalloc(&shellMalloc))) {

Though I note that current the code is #ifdef'd not to compile, and a comment
indicates that a memory leak results.

Hope I've picked the right component (sorry if i chose wrong)

-dave
Assignee: general → david.gardiner
Status: NEW → ASSIGNED
Attachment #176127 - Flags: review?(benjamin)
Attachment #176127 - Flags: review?(benjamin) → review+
Comment on attachment 176127 [details] [diff] [review]
Use CoTaskMemFree to release memory

Happy to have someone check this in.

-dave
Attachment #176127 - Flags: superreview?(benjamin)
Attachment #176127 - Flags: superreview?(benjamin)
Reassigning to Neil for seamonkey management.
Assignee: david.gardiner → neil.parkwaycc.co.uk
Status: ASSIGNED → NEW
Assignee: neil.parkwaycc.co.uk → david.gardiner
Flags: review+
Product: Mozilla Application Suite → Firefox
Updated against latest version
Attachment #176127 - Attachment is obsolete: true
Attachment #184546 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 184546 [details] [diff] [review]
Use CoTaskMemFree to release memory

Sorry, I don't know installers.
Version: unspecified → 1.5.0.x Branch
With the change to the NSIS installer, it's gone.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Attachment #184546 - Flags: review?(neil)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: