mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
fixed mem leak
This commit is contained in:
parent
69dbf6a476
commit
c87f374efc
@ -239,6 +239,7 @@ nsMIMEService::GetTypeFromURI(nsIURI *aURI, char **aContentType) {
|
||||
|
||||
// find the file extension (if any)
|
||||
specStr.SetString(cStrSpec);
|
||||
nsAllocator::Free(cStrSpec);
|
||||
nsString2 extStr;
|
||||
PRInt32 extLoc = specStr.RFindChar('.');
|
||||
if (-1 != extLoc) {
|
||||
|
Loading…
Reference in New Issue
Block a user