riched20: Remove redundant NULL check before heap_free (Smatch).

Michael Stefaniuc mstefani at redhat.de
Fri Jun 20 17:18:40 CDT 2008


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

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 8acb74d..899b82f 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3879,7 +3879,7 @@ BOOL ME_IsCandidateAnURL(ME_TextEditor *editor, int sel_min, int sel_max)
       return TRUE;
     }
   }
-  if (bufferW != NULL) heap_free(bufferW);
+  heap_free(bufferW);
   return FALSE;
 }
 
-- 
1.5.6.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/20080621/65a3dc9a/attachment.pgp 


More information about the wine-patches mailing list