Zebediah Figura : ddraw: Avoid leaking the primary stateblock.
Alexandre Julliard
julliard at winehq.org
Wed Feb 26 16:14:07 CST 2020
Module: wine
Branch: master
Commit: 2d22647506c99300954f54d2c902355d7a39a899
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2d22647506c99300954f54d2c902355d7a39a899
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Tue Feb 25 17:35:08 2020 -0600
ddraw: Avoid leaking the primary stateblock.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ddraw/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 03b03f4584..7fd78e6234 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);
More information about the wine-cvs
mailing list