dsound: Remove redundant NULL check before HeapFree. Found by Smatch.

This commit is contained in:
Michael Stefaniuc 2007-08-04 00:57:05 +02:00 committed by Alexandre Julliard
parent 0bd2548bbf
commit efe4573bc8
1 changed files with 2 additions and 4 deletions

View File

@ -253,10 +253,8 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device)
if (IDsDriverBuffer_Release(device->hwbuf) == 0)
device->hwbuf = 0;
}
} else {
if (device->pwave)
HeapFree(GetProcessHeap(),0,device->pwave);
}
} else
HeapFree(GetProcessHeap(),0,device->pwave);
HeapFree(GetProcessHeap(),0,device->pwfx);
device->pwfx=NULL;