summaryrefslogtreecommitdiff
path: root/lib/libX11/src/FreeCmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libX11/src/FreeCmap.c')
-rw-r--r--lib/libX11/src/FreeCmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libX11/src/FreeCmap.c b/lib/libX11/src/FreeCmap.c
index 68496dd88..e2b76fa6f 100644
--- a/lib/libX11/src/FreeCmap.c
+++ b/lib/libX11/src/FreeCmap.c
@@ -41,12 +41,12 @@ XFreeColormap(
LockDisplay(dpy);
GetResReq(FreeColormap, cmap, req);
+ UnlockDisplay(dpy);
+ SyncHandle();
+
#ifdef XCMS
_XcmsDeleteCmapRec(dpy, cmap);
#endif
- UnlockDisplay(dpy);
- SyncHandle();
-
return 1;
}