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

d3d10: Remove superfluous NULL check before HeapFree (Smatch).

parent 5ef5ead1
......@@ -1726,10 +1726,7 @@ static void d3d10_effect_pass_destroy(struct d3d10_effect_pass *p)
TRACE("pass %p\n", p);
HeapFree(GetProcessHeap(), 0, p->name);
if (p->objects)
{
HeapFree(GetProcessHeap(), 0, p->objects);
}
HeapFree(GetProcessHeap(), 0, p->objects);
if (p->annotations)
{
......
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