Ričardas Barkauskas : ddraw: Print IDirectDrawGammaControl interface reference count for easier debugging .
Alexandre Julliard
julliard at winehq.org
Mon Aug 22 13:29:13 CDT 2011
Module: wine
Branch: master
Commit: 68f3d21f0279aef932f620044751bf2f073c46af
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68f3d21f0279aef932f620044751bf2f073c46af
Author: Ričardas Barkauskas <rbarkauskas at codeweavers.com>
Date: Mon Aug 8 01:26:19 2011 +0300
ddraw: Print IDirectDrawGammaControl interface reference count for easier debugging.
---
dlls/ddraw/main.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c
index f7713c5..37a125d 100644
--- a/dlls/ddraw/main.c
+++ b/dlls/ddraw/main.c
@@ -752,7 +752,7 @@ DestroyCallback(IDirectDrawSurface7 *surf,
void *context)
{
IDirectDrawSurfaceImpl *Impl = impl_from_IDirectDrawSurface7(surf);
- ULONG ref7, ref4, ref3, ref2, ref1, iface_count;
+ ULONG ref7, ref4, ref3, ref2, ref1, gamma_count, iface_count;
ref7 = IDirectDrawSurface7_Release(surf); /* For the EnumSurfaces */
IDirectDrawSurface4_AddRef(&Impl->IDirectDrawSurface4_iface);
@@ -763,8 +763,10 @@ DestroyCallback(IDirectDrawSurface7 *surf,
ref2 = IDirectDrawSurface2_Release(&Impl->IDirectDrawSurface2_iface);
IDirectDrawSurface_AddRef(&Impl->IDirectDrawSurface_iface);
ref1 = IDirectDrawSurface_Release(&Impl->IDirectDrawSurface_iface);
- WARN("Surface %p has an reference counts of 7: %u 4: %u 3: %u 2: %u 1: %u\n",
- Impl, ref7, ref4, ref3, ref2, ref1);
+ IDirectDrawGammaControl_AddRef(&Impl->IDirectDrawGammaControl_iface);
+ gamma_count = IDirectDrawGammaControl_Release(&Impl->IDirectDrawGammaControl_iface);
+ WARN("Surface %p has an reference counts of 7: %u 4: %u 3: %u 2: %u 1: %u gamma: %u\n",
+ Impl, ref7, ref4, ref3, ref2, ref1, gamma_count);
/* Skip surfaces which are attached somewhere or which are
* part of a complex compound. They will get released when destroying
More information about the wine-cvs
mailing list