From 4b54090a85af71585d049f067ee745ed0015a0a0 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 24 Aug 2011 02:28:25 +0200 Subject: [PATCH] dsound: Remove pointless AddRef followed by a Release. --- dlls/dsound/dsound.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index 8c1b81240b5..c565d985b4e 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -1685,11 +1685,8 @@ HRESULT DirectSoundDevice_DuplicateSoundBuffer( if (*ppdsb) { dsb->secondary = (SecondaryBufferImpl*)*ppdsb; IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)*ppdsb); - } else { + } else WARN("SecondaryBufferImpl_Create failed\n"); - IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)dsb); - IDirectSoundBuffer_Release((LPDIRECTSOUNDBUFFER8)dsb); - } } return hres;