mmdevapi: Remove superfluous NULL pointer check before HeapFree (Smatch).
This commit is contained in:
parent
72d7ce28f0
commit
5c47973c24
|
@ -301,8 +301,7 @@ static MMDevice *MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD st
|
|||
}else if(cur->ref > 0)
|
||||
WARN("Modifying an MMDevice with postitive reference count!\n");
|
||||
|
||||
if(cur->drv_id)
|
||||
HeapFree(GetProcessHeap(), 0, cur->drv_id);
|
||||
HeapFree(GetProcessHeap(), 0, cur->drv_id);
|
||||
cur->drv_id = name;
|
||||
|
||||
cur->flow = flow;
|
||||
|
|
Loading…
Reference in New Issue