ddrawex: Remove redundant NULL check before HeapFree (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Fri Jan 9 19:43:44 CST 2009
---
dlls/ddrawex/ddraw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddrawex/ddraw.c b/dlls/ddrawex/ddraw.c
index 9e8066a..3fabc04 100644
--- a/dlls/ddrawex/ddraw.c
+++ b/dlls/ddrawex/ddraw.c
@@ -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;
}
--
1.6.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090110/b5446a7b/attachment.pgp
More information about the wine-patches
mailing list