From 2d22647506c99300954f54d2c902355d7a39a899 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Tue, 25 Feb 2020 17:35:08 -0600 Subject: [PATCH] ddraw: Avoid leaking the primary stateblock. Signed-off-by: Zebediah Figura Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/ddraw/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 03b03f4584a..7fd78e62347 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -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);