diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c index 3e11a3ddf70..e6a26526010 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 e6fb9f0f589..0b7c964a146 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); } /**********************************************************************