bug 284333 - SHGetMalloc API call is deprecated (in nsIEProfileMigrator.cpp), patch by david.gardiner@unisa.edu.au, r=me

This commit is contained in:
mconnor%myrealbox.com 2005-03-03 16:22:35 +00:00
parent 50f7c371bc
commit 537565241e

View File

@ -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();