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,
err:
if(object && object->parent) IDirectDraw4_Release(object->parent);
if(parent) IDirectDraw_Release(parent);
if(object) HeapFree(GetProcessHeap(), 0, object);
HeapFree(GetProcessHeap(), 0, object);
*ppDirectDraw = NULL;
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