From 8d217eda6c23aa69fcebe14b72258184e1ace98f 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: ddraw: Do not increase wined3d texture refcount in IDirect3DDevice7_GetTexture. --- dlls/ddraw/device.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index dbe1af6..af6ac27 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; } -- 1.7.5.4