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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user