diff --git a/mozilla/xpcom/components/nsRepository.cpp b/mozilla/xpcom/components/nsRepository.cpp index 44c81f2dcb8..78dbc1630ab 100644 --- a/mozilla/xpcom/components/nsRepository.cpp +++ b/mozilla/xpcom/components/nsRepository.cpp @@ -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; } diff --git a/mozilla/xpcom/src/nsRepository.cpp b/mozilla/xpcom/src/nsRepository.cpp index 44c81f2dcb8..78dbc1630ab 100644 --- a/mozilla/xpcom/src/nsRepository.cpp +++ b/mozilla/xpcom/src/nsRepository.cpp @@ -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; }