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 git-svn-id: svn://10.0.0.236/trunk@173925 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user