Fixed a memory leak. In some error cases we weren't calling NR_RegClose()

git-svn-id: svn://10.0.0.236/trunk@7730 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-08-11 04:06:28 +00:00
parent 4ab2c23d31
commit 962a468486
2 changed files with 2 additions and 2 deletions

View File

@@ -155,9 +155,9 @@ static FactoryEntry *platformFind(const nsCID &aCID)
delete [] cidString;
if (err == REGERR_OK) {
res = new FactoryEntry(aCID, NULL, library);
NR_RegClose(hreg);
}
}
NR_RegClose(hreg);
}
return res;
}