ole32: Remove superfluous NULL pointer check before free (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Tue Jul 31 18:14:56 CDT 2012
---
dlls/ole32/ole2.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c
index 6d37aa6..8e827e2 100644
--- a/dlls/ole32/ole2.c
+++ b/dlls/ole32/ole2.c
@@ -2953,8 +2953,7 @@ HRESULT WINAPI PropVariantClear(PROPVARIANT * pvar) /* [in/out] */
CoTaskMemFree(pvar->u.blob.pBlobData);
break;
case VT_BSTR:
- if (pvar->u.bstrVal)
- PropSysFreeString(pvar->u.bstrVal);
+ PropSysFreeString(pvar->u.bstrVal);
break;
case VT_CF:
if (pvar->u.pclipdata)
--
1.7.6.5
More information about the wine-patches
mailing list