# HG changeset patch # User Gerd Moellmann # Date 994767602 0 # Node ID a86234ceb517be23857c03c19f422a2d4bf6bc4c # Parent 3238db7bdfefcc8836f5807a9c5de621f25574c7 (unload_color): Do nothing if PIXEL is -1. diff -r 3238db7bdfef -r a86234ceb517 src/xfaces.c --- a/src/xfaces.c Tue Jul 10 12:19:10 2001 +0000 +++ b/src/xfaces.c Tue Jul 10 12:20:02 2001 +0000 @@ -1631,9 +1631,12 @@ 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 }