Francois Gouget : winex11: Delete the palette and xrender static critical sections when unloading the dll .

Alexandre Julliard julliard at winehq.org
Thu Nov 17 12:52:35 CST 2011


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Nov 17 09:55:03 2011 +0100

winex11: Delete the palette and xrender static critical sections when unloading the dll.

---

 dlls/winex11.drv/palette.c |    1 +
 dlls/winex11.drv/xrender.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c
index 3e11a3d..e6a2652 100644
--- a/dlls/winex11.drv/palette.c
+++ b/dlls/winex11.drv/palette.c
@@ -275,6 +275,7 @@ void X11DRV_PALETTE_Cleanup(void)
 		  COLOR_gapFilled, 0);
       wine_tsx11_unlock();
   }
+  DeleteCriticalSection(&palette_cs);
 }
 
 /***********************************************************************
diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c
index e6fb9f0..0b7c964 100644
--- a/dlls/winex11.drv/xrender.c
+++ b/dlls/winex11.drv/xrender.c
@@ -1118,6 +1118,7 @@ void X11DRV_XRender_Finalize(void)
     for(i = mru; i >= 0; i = glyphsetCache[i].next)
 	FreeEntry(i);
     LeaveCriticalSection(&xrender_cs);
+    DeleteCriticalSection(&xrender_cs);
 }
 
 /**********************************************************************




More information about the wine-cvs mailing list