mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:11:34 +00:00
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 a new issue