HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(unload_color): Do nothing if PIXEL is -1.
[bpt/emacs.git]
/
src
/
xfaces.c
diff --git
a/src/xfaces.c
b/src/xfaces.c
index
d2d88ce
..
7e1eb33
100644
(file)
--- 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
}