ddrawex: Remove redundant NULL check before HeapFree (Smatch).
This commit is contained in:
parent
1ac07906ae
commit
cee7954a67
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue