Commit 5c47973c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 72d7ce28
...@@ -301,8 +301,7 @@ static MMDevice *MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD st ...@@ -301,8 +301,7 @@ static MMDevice *MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD st
}else if(cur->ref > 0) }else if(cur->ref > 0)
WARN("Modifying an MMDevice with postitive reference count!\n"); 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->drv_id = name;
cur->flow = flow; cur->flow = flow;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment