Markus Amsler : Revert "d3d: Remove AddRef from IWineD3DDevice_GetDirect3D. ".

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 30 13:41:02 CST 2006


Module: wine
Branch: master
Commit: bd072332e1d11f07b2116c30ddc87ab5a239ffd3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bd072332e1d11f07b2116c30ddc87ab5a239ffd3

Author: Markus Amsler <markus.amsler at oribi.org>
Date:   Thu Nov 30 13:34:01 2006 +0100

Revert "d3d: Remove AddRef from IWineD3DDevice_GetDirect3D.".

This reverts commit 167b83c28af73803462e92ee4dcb1a95f194a74d.

---

 dlls/d3d8/device.c |    1 +
 dlls/d3d9/device.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index e128930..68b0dff 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -139,6 +139,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
     if (hr == D3D_OK && pWineD3D != NULL)
     {
         IWineD3DResource_GetParent((IWineD3DResource *)pWineD3D,(IUnknown **)ppD3D8);
+        IWineD3DResource_Release((IWineD3DResource *)pWineD3D);
     } else {
         FIXME("Call to IWineD3DDevice_GetDirect3D failed\n");
         *ppD3D8 = NULL;
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 2ebb677..349356b 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -101,6 +101,7 @@ HRESULT  WINAPI  IDirect3DDevice9Impl_Ge
     if (hr == D3D_OK && pWineD3D != NULL)
     {
         IWineD3DResource_GetParent((IWineD3DResource *)pWineD3D,(IUnknown **)ppD3D9);
+        IWineD3DResource_Release((IWineD3DResource *)pWineD3D);
     } else {
         FIXME("Call to IWineD3DDevice_GetDirect3D failed\n");
         *ppD3D9 = NULL;




More information about the wine-cvs mailing list