d3dxof/tests: Remove redundant NULL check before HeapFree (Smatch).

Michael Stefaniuc mstefani at redhat.de
Tue Dec 16 06:10:58 CST 2008


---
 dlls/d3dxof/tests/d3dxof.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c
index 4bd52ca..3315721 100644
--- a/dlls/d3dxof/tests/d3dxof.c
+++ b/dlls/d3dxof/tests/d3dxof.c
@@ -261,9 +261,7 @@ static void test_dump(void)
     CloseHandle(hFile);
 
 exit:
-
-    if (pvData)
-        HeapFree(GetProcessHeap(), 0, pvData);
+    HeapFree(GetProcessHeap(), 0, pvData);
 }
 
 START_TEST(d3dxof)
-- 
1.6.1.rc2
-------------- 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/20081216/ecb750b1/attachment.pgp 


More information about the wine-patches mailing list