Commit b8035d2c authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 31b02bbd
...@@ -2399,7 +2399,7 @@ HRESULT WINAPI OleCreate( ...@@ -2399,7 +2399,7 @@ HRESULT WINAPI OleCreate(
} }
} }
if (FAILED(hres)) if (FAILED(hres) && pUnk)
{ {
IUnknown_Release(pUnk); IUnknown_Release(pUnk);
pUnk = NULL; pUnk = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment