Michael Stefaniuc : ddraw: Remove redundant "not NULL" check of This ( coccicheck).

Alexandre Julliard julliard at winehq.org
Tue May 18 12:32:57 CDT 2010


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue May 18 01:32:45 2010 +0200

ddraw: Remove redundant "not NULL" check of This (coccicheck).

---

 dlls/ddraw/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c
index ed4e7cd..591f46c 100644
--- a/dlls/ddraw/main.c
+++ b/dlls/ddraw/main.c
@@ -289,7 +289,7 @@ err_out:
     /* Let's hope we never need this ;) */
     if(wineD3DDevice) IWineD3DDevice_Release(wineD3DDevice);
     if(wineD3D) IWineD3D_Release(wineD3D);
-    if(This) HeapFree(GetProcessHeap(), 0, This->decls);
+    HeapFree(GetProcessHeap(), 0, This->decls);
     HeapFree(GetProcessHeap(), 0, This);
     return hr;
 }




More information about the wine-cvs mailing list