riched20: Remove redundant NULL check before HeapFree (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Wed Aug 6 14:56:15 CDT 2008
---
dlls/riched20/reader.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c
index 82038f6..9a84a06 100644
--- a/dlls/riched20/reader.c
+++ b/dlls/riched20/reader.c
@@ -169,11 +169,8 @@ RTFDestroy(RTF_Info *info)
}
RTFDestroyAttrs(info);
heap_free(info->cpOutputBuffer);
- if (info->tableDef)
- {
- heap_free(info->tableDef);
- info->tableDef = NULL;
- }
+ heap_free(info->tableDef);
+ info->tableDef = NULL;
}
--
1.6.0.rc1
-------------- 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/20080806/f64fec78/attachment.pgp
More information about the wine-patches
mailing list