Module: wine Branch: master Commit: d597ea8f03027483ca08bb191d9929656992e590 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d597ea8f03027483ca08bb191d...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Jun 6 11:14:38 2016 +0300
dsound: Remove redundant null pointer check (Coverity).
IAudioClient instance could be expected to be valid at this point.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Andrew Eikum aeikum@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dsound/primary.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c index b14bff7..830764a 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -387,8 +387,7 @@ err: IAudioStreamVolume_Release(volume); if (render) IAudioRenderClient_Release(render); - if (client) - IAudioClient_Release(client); + IAudioClient_Release(client); HeapFree(GetProcessHeap(), 0, wfx); return hres; }