ddraw: Avoid leaking the primary stateblock.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6384f4c4e7
commit
2d22647506
|
@ -245,6 +245,7 @@ static ULONG WINAPI d3d_device_inner_Release(IUnknown *iface)
|
|||
|
||||
wined3d_device_set_rendertarget_view(This->wined3d_device, 0, NULL, FALSE);
|
||||
|
||||
wined3d_stateblock_decref(This->state);
|
||||
if (This->recording)
|
||||
wined3d_stateblock_decref(This->recording);
|
||||
|
||||
|
|
Loading…
Reference in New Issue