Commit cee7954a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

ddrawex: Remove redundant NULL check before HeapFree (Smatch).

parent 1ac07906
...@@ -1551,7 +1551,7 @@ IDirectDrawFactoryImpl_CreateDirectDraw(IDirectDrawFactory* iface, ...@@ -1551,7 +1551,7 @@ IDirectDrawFactoryImpl_CreateDirectDraw(IDirectDrawFactory* iface,
err: err:
if(object && object->parent) IDirectDraw4_Release(object->parent); if(object && object->parent) IDirectDraw4_Release(object->parent);
if(parent) IDirectDraw_Release(parent); if(parent) IDirectDraw_Release(parent);
if(object) HeapFree(GetProcessHeap(), 0, object); HeapFree(GetProcessHeap(), 0, object);
*ppDirectDraw = NULL; *ppDirectDraw = NULL;
return hr; return hr;
} }
......
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