mmdevapi: Remove superfluous NULL pointer check before HeapFree (Smatch).

This commit is contained in:
Michael Stefaniuc 2012-04-15 16:31:57 +02:00 committed by Alexandre Julliard
parent 72d7ce28f0
commit 5c47973c24
1 changed files with 1 additions and 2 deletions

View File

@ -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;