cid#705673 Resource leak

Change-Id: Ib4cf76e941541b7f09b6a0dfbdab2a2604a0311d
This commit is contained in:
Noel Grandin 2014-07-18 14:02:53 +02:00
parent dac4af0e0f
commit aaedf14175

View file

@ -118,6 +118,7 @@ static RegError REGISTRY_CALLTYPE createRegistry(rtl_uString* registryName,
ORegistry* pReg = new ORegistry();
if ((ret = pReg->initRegistry(registryName, REG_CREATE)))
{
delete pReg;
*phRegistry = NULL;
return ret;
}