Zebediah Figura : ddraw: Avoid leaking the primary stateblock.
Alexandre Julliard
julliard at winehq.org
Tue Jun 2 08:11:19 CDT 2020
Module: wine
Branch: stable
Commit: f35542ec2ecaa2e400c6432428392d301d496f19
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f35542ec2ecaa2e400c6432428392d301d496f19
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>
(cherry picked from commit 2d22647506c99300954f54d2c902355d7a39a899)
Signed-off-by: Michael Stefaniuc <mstefani 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 0999c01cb2..03b9676b92 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