wined3d: Remove a redundant NULL check before HeapFree().

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-08 10:09:10 +02:00 committed by Alexandre Julliard
parent 66f13236fe
commit 10925fa451
1 changed files with 1 additions and 2 deletions

View File

@ -459,8 +459,7 @@ struct wined3d_string_buffer *string_buffer_get(struct wined3d_string_buffer_lis
if (!buffer || !string_buffer_init(buffer))
{
ERR("Couldn't allocate buffer for temporary string.\n");
if (buffer)
HeapFree(GetProcessHeap(), 0, buffer);
HeapFree(GetProcessHeap(), 0, buffer);
return NULL;
}
}