diff options
| author | Gerd Moellmann | 2001-07-10 12:20:02 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-07-10 12:20:02 +0000 |
| commit | 30a7ac224fe64611fbccb665606aea44eefc48b9 (patch) | |
| tree | 4d110b22f368501890f67dc3d3c206ab63a6ab64 | |
| parent | cefecbcf1d9e2c5e48c4d6dd7b69841855a6684c (diff) | |
| download | emacs-30a7ac224fe64611fbccb665606aea44eefc48b9.tar.gz emacs-30a7ac224fe64611fbccb665606aea44eefc48b9.zip | |
(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) | |||
| 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 | ||