diff --git a/mozilla/netwerk/protocol/file/src/nsFileProtocolHandler.cpp b/mozilla/netwerk/protocol/file/src/nsFileProtocolHandler.cpp index 84c06b64a17..db4d992ad50 100644 --- a/mozilla/netwerk/protocol/file/src/nsFileProtocolHandler.cpp +++ b/mozilla/netwerk/protocol/file/src/nsFileProtocolHandler.cpp @@ -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();