dsound: Remove pointless AddRef followed by a Release.
This commit is contained in:
parent
bf235df2c6
commit
4b54090a85
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue