fixed mem leak

This commit is contained in:
valeski%netscape.com 1999-08-24 21:45:20 +00:00
parent 69dbf6a476
commit c87f374efc

View File

@ -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) {