Mercurial > emacs
diff src/image.c @ 99904:ba4876d944bc
Fix bug #1362. * image.c (x_clear_image_1): Do not free background under HAVE_NS, it is not an indexed color. * nsterm.m (free_indexed_color): Add argument checking. * nsfns.m: Move config.h to before system includes (advised by Dan N.).
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Tue, 25 Nov 2008 02:45:39 +0000 |
parents | 468c55dd37a2 |
children | dd451a5b1d77 |
line wrap: on
line diff
--- a/src/image.c Tue Nov 25 02:12:27 2008 +0000 +++ b/src/image.c Tue Nov 25 02:45:39 2008 +0000 @@ -1622,10 +1622,7 @@ { Free_Pixmap (FRAME_X_DISPLAY (f), img->pixmap); img->pixmap = NO_PIXMAP; -#ifdef HAVE_NS - if (img->background_valid) - ns_free_indexed_color(img->background, f); -#endif + /* NOTE (HAVE_NS): background color is NOT an indexed color! */ img->background_valid = 0; }