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

This commit is contained in:
Michael Stefaniuc 2010-01-14 21:58:05 +01:00 committed by Alexandre Julliard
parent 5ef5ead15f
commit 5cc257e5c2

View file

@ -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)
{