Commit 1e25ff3c authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Correctly destroy the adapter on format initialization failure in no3d mode.

parent a5ef9295
......@@ -2991,6 +2991,7 @@ static struct wined3d_adapter *wined3d_adapter_no3d_create(unsigned int ordinal,
if (!wined3d_adapter_no3d_init_format_info(adapter))
{
wined3d_adapter_cleanup(adapter);
heap_free(adapter);
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