dsound: Remove redundant NULL check before HeapFree. Found by Smatch.
This commit is contained in:
parent
0bd2548bbf
commit
efe4573bc8
|
@ -253,10 +253,8 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device)
|
||||||
if (IDsDriverBuffer_Release(device->hwbuf) == 0)
|
if (IDsDriverBuffer_Release(device->hwbuf) == 0)
|
||||||
device->hwbuf = 0;
|
device->hwbuf = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
if (device->pwave)
|
HeapFree(GetProcessHeap(),0,device->pwave);
|
||||||
HeapFree(GetProcessHeap(),0,device->pwave);
|
|
||||||
}
|
|
||||||
HeapFree(GetProcessHeap(),0,device->pwfx);
|
HeapFree(GetProcessHeap(),0,device->pwfx);
|
||||||
device->pwfx=NULL;
|
device->pwfx=NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue