зеркало из https://github.com/mozilla/pjs.git
Use the non-deprecated deallocator to deallocate memory. Bug 284158, patch by
David Gardiner <david.gardiner@unisa.edu.au>, r=dougt, sr=bzbarsky, a=shaver
This commit is contained in:
Родитель
cded31e74d
Коммит
7f7a7ede01
|
@ -126,12 +126,7 @@ nsFileProtocolHandler::ReadURLFile(nsIFile* aFile, nsIURI** aURI)
|
|||
rv = NS_NewURI(aURI, 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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче