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

This commit is contained in:
Michael Stefaniuc 2009-01-10 02:43:44 +01:00 committed by Alexandre Julliard
parent 1ac07906ae
commit cee7954a67

View file

@ -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;
}