dsound: Remove unnecessary NULL pointer check.
This commit is contained in:
parent
90df5a967f
commit
2c4c204371
|
@ -793,10 +793,7 @@ IDirectSoundCaptureBufferImpl_Release( LPDIRECTSOUNDCAPTUREBUFFER8 iface )
|
||||||
IDsCaptureDriverBuffer_Release(This->device->hwbuf);
|
IDsCaptureDriverBuffer_Release(This->device->hwbuf);
|
||||||
|
|
||||||
/* remove from DirectSoundCaptureDevice */
|
/* remove from DirectSoundCaptureDevice */
|
||||||
if (This->device)
|
This->device->capture_buffer = NULL;
|
||||||
This->device->capture_buffer = NULL;
|
|
||||||
else
|
|
||||||
ERR("does not reference dsound\n");
|
|
||||||
|
|
||||||
if (This->notify)
|
if (This->notify)
|
||||||
IDirectSoundNotify_Release((LPDIRECTSOUNDNOTIFY)This->notify);
|
IDirectSoundNotify_Release((LPDIRECTSOUNDNOTIFY)This->notify);
|
||||||
|
|
Loading…
Reference in New Issue