diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-07-10 12:20:02 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-07-10 12:20:02 +0000 |
commit | 30a7ac224fe64611fbccb665606aea44eefc48b9 (patch) | |
tree | 4d110b22f368501890f67dc3d3c206ab63a6ab64 | |
parent | cefecbcf1d9e2c5e48c4d6dd7b69841855a6684c (diff) | |
download | emacs-30a7ac224fe64611fbccb665606aea44eefc48b9.tar.gz |
(unload_color): Do nothing if PIXEL is -1.
-rw-r--r-- | src/xfaces.c | 9 |
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) unsigned long pixel; { #ifdef HAVE_X_WINDOWS - BLOCK_INPUT; - x_free_colors (f, &pixel, 1); - UNBLOCK_INPUT; + if (pixel != -1) + { + BLOCK_INPUT; + x_free_colors (f, &pixel, 1); + UNBLOCK_INPUT; + } #endif } |