From f5c46b01f42825156d01e8636909bc2dedbf51ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ri=C4=8Dardas=20Barkauskas?= Date: Sun, 10 Jul 2011 11:56:41 +0300 Subject: [PATCH] ddraw: Do not increase wined3d texture refcount in IDirect3DDevice7_GetTexture. --- dlls/ddraw/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index dbe1af68dbb..af6ac27fa1d 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -4453,6 +4453,7 @@ IDirect3DDeviceImpl_7_GetTexture(IDirect3DDevice7 *iface, *Texture = wined3d_texture_get_parent(wined3d_texture); IDirectDrawSurface7_AddRef(*Texture); + wined3d_texture_decref(wined3d_texture); LeaveCriticalSection(&ddraw_cs); return hr; }