wined3d: Avoid accessing freed memory in wined3d_view_gl_destroy() (Valgrind).
Signed-off-by: Sven Baars <sbaars@codeweavers.com> Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5ec0b75993
commit
4128e457a9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue