Commit 4128e457 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

wined3d: Avoid accessing freed memory in wined3d_view_gl_destroy() (Valgrind).

parent 5ec0b759
......@@ -4848,7 +4848,7 @@ static void wined3d_view_gl_destroy(struct wined3d_device *device,
ctx->free = ctx != &c ? ctx : NULL;
wined3d_cs_destroy_object(device->cs, wined3d_view_gl_destroy_object, ctx);
if (!ctx->free)
if (ctx == &c)
device->cs->ops->finish(device->cs, WINED3D_CS_QUEUE_DEFAULT);
}
......
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