dsound: Remove redundant NULL check before HeapFree. Found by
Smatch.
Michael Stefaniuc
mstefani at redhat.de
Fri Aug 3 17:57:05 CDT 2007
---
dlls/dsound/primary.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 557422a..355fc2c 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -253,10 +253,8 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device)
if (IDsDriverBuffer_Release(device->hwbuf) == 0)
device->hwbuf = 0;
}
- } else {
- if (device->pwave)
- HeapFree(GetProcessHeap(),0,device->pwave);
- }
+ } else
+ HeapFree(GetProcessHeap(),0,device->pwave);
HeapFree(GetProcessHeap(),0,device->pwfx);
device->pwfx=NULL;
--
1.5.2.2
-------------- 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/20070804/74b6dcf2/attachment.pgp
More information about the wine-patches
mailing list