aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index d2d88ce5021..7e1eb33521c 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1631,9 +1631,12 @@ unload_color (f, pixel)
1631 unsigned long pixel; 1631 unsigned long pixel;
1632{ 1632{
1633#ifdef HAVE_X_WINDOWS 1633#ifdef HAVE_X_WINDOWS
1634 BLOCK_INPUT; 1634 if (pixel != -1)
1635 x_free_colors (f, &pixel, 1); 1635 {
1636 UNBLOCK_INPUT; 1636 BLOCK_INPUT;
1637 x_free_colors (f, &pixel, 1);
1638 UNBLOCK_INPUT;
1639 }
1637#endif 1640#endif
1638} 1641}
1639 1642