Commit 2d226475 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ddraw: Avoid leaking the primary stateblock.

parent 6384f4c4
...@@ -245,6 +245,7 @@ static ULONG WINAPI d3d_device_inner_Release(IUnknown *iface) ...@@ -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_device_set_rendertarget_view(This->wined3d_device, 0, NULL, FALSE);
wined3d_stateblock_decref(This->state);
if (This->recording) if (This->recording)
wined3d_stateblock_decref(This->recording); wined3d_stateblock_decref(This->recording);
......
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