mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
bug 284333 - SHGetMalloc API call is deprecated (in nsIEProfileMigrator.cpp), patch by david.gardiner@unisa.edu.au, r=me
This commit is contained in:
parent
50f7c371bc
commit
537565241e
@ -1231,13 +1231,9 @@ nsIEProfileMigrator::ResolveShortcut(const nsAFlatString &aFileName, char** aOut
|
||||
result = urlLink->GetURL(&lpTemp);
|
||||
if (SUCCEEDED(result) && lpTemp) {
|
||||
*aOutURL = PL_strdup(lpTemp);
|
||||
|
||||
// free the string that GetURL alloc'd
|
||||
IMalloc* pMalloc;
|
||||
result = SHGetMalloc(&pMalloc);
|
||||
if (SUCCEEDED(result)) {
|
||||
pMalloc->Free(lpTemp);
|
||||
pMalloc->Release();
|
||||
}
|
||||
::CoTaskMemFree(lpTemp);
|
||||
}
|
||||
}
|
||||
urlFile->Release();
|
||||
|
Loading…
Reference in New Issue
Block a user