Raphael Junqueira : x11drv: cleanup not longer used data on
X11DRV_PDEVICE.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Dec 6 04:37:32 CST 2005
Module: wine
Branch: refs/heads/master
Commit: 7b5571cc8c3de9107f14e7406485dfe222fffcb9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7b5571cc8c3de9107f14e7406485dfe222fffcb9
Author: Raphael Junqueira <fenix at club-internet.fr>
Date: Tue Dec 6 11:33:12 2005 +0100
x11drv: cleanup not longer used data on X11DRV_PDEVICE.
---
dlls/x11drv/init.c | 2 --
dlls/x11drv/x11drv.h | 2 --
2 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dlls/x11drv/init.c b/dlls/x11drv/init.c
index 9524c9b..69cfa02 100644
--- a/dlls/x11drv/init.c
+++ b/dlls/x11drv/init.c
@@ -164,8 +164,6 @@ BOOL X11DRV_DeleteDC( X11DRV_PDEVICE *ph
DeleteObject( physDev->region );
wine_tsx11_lock();
XFreeGC( gdi_display, physDev->gc );
- while (physDev->used_visuals-- > 0)
- XFree(physDev->visuals[physDev->used_visuals]);
wine_tsx11_unlock();
HeapFree( GetProcessHeap(), 0, physDev );
return TRUE;
diff --git a/dlls/x11drv/x11drv.h b/dlls/x11drv/x11drv.h
index df6ed32..21b28d5 100644
--- a/dlls/x11drv/x11drv.h
+++ b/dlls/x11drv/x11drv.h
@@ -140,8 +140,6 @@ typedef struct
int depth; /* bit depth of the DC */
int exposures; /* count of graphics exposures operations */
struct dce *dce; /* opaque pointer to DCE */
- XVisualInfo *visuals[MAX_PIXELFORMATS];
- int used_visuals;
int current_pf;
XRENDERINFO xrender;
} X11DRV_PDEVICE;
More information about the wine-cvs
mailing list