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

Michael Stefaniuc mstefani at redhat.de
Mon Aug 18 15:31:31 CDT 2008


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

diff --git a/dlls/riched20/list.c b/dlls/riched20/list.c
index 092fde4..4ddc54a 100644
--- a/dlls/riched20/list.c
+++ b/dlls/riched20/list.c
@@ -123,8 +123,7 @@ void ME_DestroyDisplayItem(ME_DisplayItem *item) {
   }
   if (item->type==diUndoSplitParagraph) {
      FREE_OBJ(item->member.para.pFmt);
-     if (item->member.para.pCell)
-       FREE_OBJ(item->member.para.pCell);
+     FREE_OBJ(item->member.para.pCell);
   }
   FREE_OBJ(item);
 }
-- 
1.6.0.rc3
-------------- 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/20080818/8881a5eb/attachment-0001.pgp 


More information about the wine-patches mailing list