Commit 06646b7a authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 54bcda10
...@@ -275,6 +275,7 @@ void X11DRV_PALETTE_Cleanup(void) ...@@ -275,6 +275,7 @@ void X11DRV_PALETTE_Cleanup(void)
COLOR_gapFilled, 0); COLOR_gapFilled, 0);
wine_tsx11_unlock(); wine_tsx11_unlock();
} }
DeleteCriticalSection(&palette_cs);
} }
/*********************************************************************** /***********************************************************************
......
...@@ -1118,6 +1118,7 @@ void X11DRV_XRender_Finalize(void) ...@@ -1118,6 +1118,7 @@ void X11DRV_XRender_Finalize(void)
for(i = mru; i >= 0; i = glyphsetCache[i].next) for(i = mru; i >= 0; i = glyphsetCache[i].next)
FreeEntry(i); FreeEntry(i);
LeaveCriticalSection(&xrender_cs); LeaveCriticalSection(&xrender_cs);
DeleteCriticalSection(&xrender_cs);
} }
/********************************************************************** /**********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment