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

Alexandre Julliard julliard at winehq.org
Tue Dec 16 08:40:41 CST 2008


Module: wine
Branch: master
Commit: 1825e371b75e7b3fbe45db74a174eda98e640418
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1825e371b75e7b3fbe45db74a174eda98e640418

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Dec 16 13:10:58 2008 +0100

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

---

 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)




More information about the wine-cvs mailing list