Commit 10925fa4 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 66f13236
......@@ -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;
}
}
......
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