Closed Bug 284333 Opened 20 years ago Closed 20 years ago

SHGetMalloc API call is deprecated (in nsIEProfileMigrator.cpp)

Categories

(Core Graveyard :: Profile: Migration, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

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

References

Details

Attachments

(1 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: /browser/components/migration/src/nsIEProfileMigrator.cpp, line 1236 -- result = SHGetMalloc(&pMalloc); -dave
Assignee: nobody → david.gardiner
Status: NEW → ASSIGNED
Attachment #176128 - Flags: review?(mconnor)
Comment on attachment 176128 [details] [diff] [review] Use CoTaskMemFree to release memory looks good, I'll try to land this soon.
Attachment #176128 - Flags: review?(mconnor) → review+
checked in using ::CoTaskMemFree per prevailing module style. Thanks!
Status: ASSIGNED → RESOLVED
Closed: 20 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: