ole32: Don't release pUnk in OleCreate if CoCreateInstance failed.

This commit is contained in:
Rob Shearman 2007-01-03 10:31:08 +00:00 committed by Alexandre Julliard
parent 31b02bbd1f
commit b8035d2c70
1 changed files with 1 additions and 1 deletions

View File

@ -2399,7 +2399,7 @@ HRESULT WINAPI OleCreate(
}
}
if (FAILED(hres))
if (FAILED(hres) && pUnk)
{
IUnknown_Release(pUnk);
pUnk = NULL;