dsound: Remove pointless AddRef followed by a Release.

This commit is contained in:
Michael Stefaniuc 2011-08-24 02:28:25 +02:00 committed by Alexandre Julliard
parent bf235df2c6
commit 4b54090a85
1 changed files with 1 additions and 4 deletions

View File

@ -1685,11 +1685,8 @@ HRESULT DirectSoundDevice_DuplicateSoundBuffer(
if (*ppdsb) { if (*ppdsb) {
dsb->secondary = (SecondaryBufferImpl*)*ppdsb; dsb->secondary = (SecondaryBufferImpl*)*ppdsb;
IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)*ppdsb); IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)*ppdsb);
} else { } else
WARN("SecondaryBufferImpl_Create failed\n"); WARN("SecondaryBufferImpl_Create failed\n");
IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)dsb);
IDirectSoundBuffer_Release((LPDIRECTSOUNDBUFFER8)dsb);
}
} }
return hres; return hres;